What will be the output when : int val=500,sum,n=550; sum=(n+val > 1050)? 400 : 200;
Answers
Answered by
2
Answer:-
Given,
val=500,n=550
So,
n+val=500+550=1050
So,
n+val>1050 is false.
So,
sum=200
Hence, the value of sum after execution is 200.
Similar questions