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.
