1.

What is the output of this program?
#include 
using namespace std;
int main()
{
int p = 7, q = 9, r;
r = (p > q) ? p : q;
cout << r;
return 0;
}

A. 7
B. 9
C. Compilation Error
D. Runtime Error
E. None of these
Answer» C. Compilation Error


Discussion

No Comment Found

Related MCQs