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)
I have been asked this question in an interview for job.
This interesting question is from Default Arguments in chapter Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming