Vidyalelo
C++ Programming · Q187

Classes and Objects in C++

Programming · C++ Programming · question 187

Q187

What will be the output of the following C++ code? #include using namespace std; int main () int a, b, c; a = 2; b = 7; c = (a > b) ? a : b; cout << c; return 0;

A.
2
B.
7
Answer
C.
9
D.
14

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board