1.

What is the output of the following program?
#include
using namespace std;
int main()
{
int a = -10;
unsigned int b = 20;

if(a > b)
{
cout << "a is greater";
}
else
{
cout << "b is greater";
}
return 0;
}

A. 10
B. 20
C. a is greater
D. b is greater
E. None of these
Answer» D. b is greater


Discussion

No Comment Found

Related MCQs