What is the problem in the following declarations?
int func(int);
double func(int);
int func(float);
Answer: D
Correct answer: All of the mentioned
C has no function overloading: one name may denote only one function in a translation unit. So none of the three variations is allowed - not a different signature, not a different return type, not a different number of parameters. (C++ permits overloading on the parameters, though still not on the return type alone.)
Please log in or register to report this question.