Q.

Output of following program?
#include <iostream>
using namespace std;
int fun(int=0, int = 0);
int main()
{
cout << fun(5);
return 0;
}
int fun(int x, int y)
{
return (x+y);
}

A. Compiler Error
B. 5
C. 0
D. 10
Answer» B. 5
1.5k
0
Do you find this helpful?
15

View all MCQs in

CPP Programming

Discussion

No comments yet