What would be output of the following c Program – Conditional Operator

 

output of the following program conditional operatoroutput of the following program conditional operator

What would be output of the following c Program

main( )
{
int k, num = 30 ;
k = ( num > 5 ? ( num <= 10 ? 100 : 200 ) : 500 ) ;
printf ( “\n%d”, num ) ;
}

Asked on September 9, 2018 in program.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.