Sail E0 Webinar
Question


What is the output of the following program?


1.
#include
2.
using namespace std;
3.
int f(int p, int q)
4.
{
5.
if (p > q)
6.
return p;
7.
else
8.
return q;
9.
}
10.
main()
11.
{
12.
int a = 5, b = 10;
13.
int k;
14.
bool x = true;
15.
bool y = f(a, b);
16.
k =((a * b) + (x + y));
17.
cout
Options:
A .  55
B .  62
C .  52
D .  none of the mentioned
Answer: Option C



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers