141k views
2 votes
A function prototype can always be omitted when: A function is defined before it is first invoked. A function does not return a value. A function is invoked before it is first defined. A function takes no arguments.

User Davetapley
by
4.5k points

1 Answer

2 votes

Answer:

A function is defined before it is first invoked.

Step-by-step explanation:

A function prototype is a term in computer programming that is used as the declaration of a function that specifies function's name, parameters and return type. However, unlike function itself, which specifies what it does, a function prototype specifies function's interface only and not what it does.

Hence, A function prototype can always be omitted when: a function is defined before it is first invoked.

User Justin Thomas
by
4.9k points