1.

What is the output of the following program?
#include 
using namespace std;

int fun(int n, int m)
{
if (n > m)
return n;
else
return m;
}

main()
{
int num0 = 6, num1 = 12;
int res;
bool x = true;
bool y = fun(num0, num1);
res =((num0 * num1) + (x + y));
cout << res;
}

A. 6
B. 12
C. 74
D. 50
E. None of these
Answer» D. 50


Discussion

No Comment Found

Related MCQs