Answer to Question #157158 in C++ for Angelie Suarez

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;
}
1
Expert's answer
2021-01-23T15:46:43-0500

Compile-time error: missing default parameter for parameter 3


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog