A

Admin • 828.03K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category C++
  • Hashtags:

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.