Computer Science, asked by rohankatoria, 9 months ago

The ouput of---<br>{<br>int a = 5;<br>int b = 10;<br>cout << (a>b?a:b);<br>}
Sx .lnt ३ = 5;<br>Intb = 10;<br>Cout << (a>b?a:b);<br>} का आउटपुट
Select one:
a. 5
o b. Syntax error
सिटेक्स त्रुटि
c. 10
| 10
|
d. None
कोई नहीं​

Answers

Answered by sswaraj04
1

Answer:

c.10

Explanation:

a>b?a:b means

if(a>b)

cout<<a;

else

cout<<b;

Syntax is correct

cout<<(a>b?a:b);

5>10?5:10

5 is not greater then 10 so second part 10 printed

Hope it helps :-)

Similar questions