Question
What is the output of this program?
#include < iostream >
using namespace std;
int main()
{
int a = 5, b = 6, c;
c = (a > b) ? a : b;
cout
Answer: Option A
Was this answer helpful ?
Here the condition is false on conditional operator, so the b value is assigned to c
Was this answer helpful ?
More Questions on This Topic :
Question 6. How many types of loops are there? ....
Question 7. The switch statement is also called as? ....
Submit Solution