Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
int f(int=0, int = 0);
int main()
{
cout << f(2);
return 0;
}
int f(int a, int b) { return (a+b); }
β
Correct Answer: (B)
2