C - Control Statements - Discussion

You Are Here :: Home > C > Control Statements - Discussion

 



Q.

int largest, a=10, b=20, c=30 ;

largest = (a > b ? ( a > c ? 10: 30 ) : ( b > c ? 20: 30 ) );
printf("Largst Number : %d",largest);

A. Largst Number : 10 B. Largst Number : 20
C. Largst Number : 30 D. Compile time error

Answer: Option C
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion