A
Q. What is the output of the following C++ code?
Code:
#include<iostream>
using namespace std;
int fun(int a = 0, int b = 0, int c)
{ return (a + b + c); }
int main()
{
cout << fun(2);
return 0;
}
using namespace std;
int fun(int a = 0, int b = 0, int c)
{ return (a + b + c); }
int main()
{
cout << fun(2);
return 0;
}
- Correct Answer - Option(C)
- Views: 25
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.