Q.

Output of the program?
#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. 10
B. 0
C. 20
D. Compiler Error
Answer» D. Compiler Error
1.1k
0
Do you find this helpful?
9

View all MCQs in

CPP Programming

Discussion

No comments yet