Which of the following statements is correct about function prototypes in C?
AFunction prototype provides the code of the function, which will be executed when
called.
BFunction prototype provides the complete implementation of a function, including the
return type, name, parameters, and statements that make up the function’s body.
CFunction prototypes tell the compiler the number and type of arguments that are to be
passed to the function and the type of value that is to be returned by the function.
DFunction prototypes are typically placed at the end of the code after the main function.
Show answerHide answer
Correct answer: (C) Function prototypes tell the compiler the number and type of arguments that are to be
passed to the function and the type of value that is to be returned by the function.
Explanation
A prototype declares the function's return type, name and the number and types of its parameters (ending with a semicolon), so the compiler can check calls. It has no body and is usually placed before main.