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;
}
β
Correct Answer: (C)
Compilation error