R

Ram Sharma • 193.86K Points
Coach

Q. Output of the program?

Code:
#include<iostream>
using namespace std;
int fun(int x = 0, int y = 0, int z)
{ return (x + y + z); }
int main()
{
cout << fun(10);
return 0;
}
  • (A) 0
  • (B) 10
  • (C) 20
  • (D) Compiler Error

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.