C - Operators - Discussion

You Are Here :: Home > C > Operators - Discussion

 



Q.

What will be the output of the following statements?

int a=5,b=6,c=9,d; d=(ac?1:2):(c>b?6:8));
printf("%d",d);

A. 1 B. 2
C. 6 D. Error

Answer: Option D
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion