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 ) ;
}

 

 

For any query or issue, feel free to discuss on http://discuss.eduguru.in

Leave a Reply