Question #157158

16. What will be the output of the following C++ code? (3 pts)
int fun(int x = 0, int y = 0, int z)
{
return (x + y + z);
}

int main()
{
cout << fun(10);
return 0;
}

Expert's answer

Compile-time error: missing default parameter for parameter 3


LATEST TUTORIALS
APPROVED BY CLIENTS