(This exercise is for those who have studied the optional section ondefault arguments.) What output does the following function provide in
response to the following calls?
void func(double x, double y = 1.1, double z = 2.3)
{
cout << x << " " << y << " " << z << endl;
Calls:
a. func(2.0);
b. func(2.0, 3.0);
c. func(2.0, 3.0, 4.0);
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.