conditional operators c program example

conditional operators c program example

 

conditional operators c program example
conditional operators c program example

 

 

 

What would be the output of the following programs:

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

 

 

Leave a Reply