Can someone help me on this?
While considering the following function definition:
void defaultParam(int u, int v = 5, double z = 3.2)
{
int a;
u = u + static_cast<int>(2 * v + z);
a = u + v * z;
cout << "a = " << a << endl;
}
What does the following output
a)
defaultParam(6);
b)
defaultParam(3,4);
c)
defaultParam(3, 0, 2.8);
I got a) 35 b)28.8 c) 24.96. Is that anywhere close?