Which among the following is correct?
A. void test(int x=0, int y, int z=0)
B. void test(int x=0, int=0)
C. void test(int x, int y=0)
D. void test(int x=’c, int y)
Answer: c
Explanation: The default arguments must be mentioned at last in the argument list. Also, the type of values assigned must match with the argument type. All the default arguments must be mentioned at last, none of the normal arguments should come in between the default arguments list.