Multiple choice technology programming languages

Which of the following statements are correct about Function prototypes?

  1. It resembles the header Of the function definition

  2. It tells the compiler the Names of the parameters

  3. It must be declared before its corresponding functions can be utilized

  4. All the above are incorrect

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A function prototype informs the compiler about the function's interface (return type, parameters) so it can be verified before the full function definition is encountered. Since it declares the function, it must be declared before any utilization. Other options are correct descriptors of prototypes, making the choice of only one valid option slightly ambiguous, but the marked option is technically true.