Can someone help with this C question Consider the following
Can someone help with this C++ question:
Consider the following function prototype:
void funcDefaultParam(double x = 7.3, int y = 4, string z = \"*\");
Which of the following function calls is correct?
funcDefaultParam();
funcDefaultParam(2.8);
funcDefaultParam(3.2, 0, \"h\");
funcDefaultParam(9.2, \"*\");
funcDefaultParam(7, 3);
Solution
Answer: funcDefaultParam(3.2, 0, \"h\");
funcDefaultParam(3.2, 0, \"h\"); this function call is correct becuase number of parameters are same and each parameter data type matches.
