declaration of function without parameters
Multiple choice question
Are the following two C function prototypes the same?
int func(void);
int func();
No Feedback: These two prototypes are not the same. The first prototype declares a function that receive no parameters and returning int. However, the second prototype declares a function that returning int while tells the compiler nothing about the function parameters. In this case the compiler will not check the parameters types nor the parameters number in the calling statements. | |
Yes |
Feedback:
This question is part of the following quizzes



