Which of the following function prototypes is valid int func

Which of the following function prototypes is valid? int funcExp (int x, float v); int funcExp (x); funcExp (int x, float v) {}; funcExp (void);

Solution

first option is correct function prototype.

second option is not correct because type of x is not given.

third option is not correct because it is not a prototype as we have used curly braces it turns in to definition.

fourth option is not correct as return type is missing and the formal parameter name is missing.

 Which of the following function prototypes is valid? int funcExp (int x, float v); int funcExp (x); funcExp (int x, float v) {}; funcExp (void);Solutionfirst o

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site