Hello guys.
By the specification of C I know i can use several instructions (with ) instead of use just one. But is it true if iīm using a ternary operation?
i.e.,
Can you help me (I know my example can be changed in a better way, but itīs just an example!)?Code:x > 10 ? printf( "x > 10\n" ) : printf( "x <= 10\n" ); //valid x > 10 ? { printf( "x > 10" ); printf( "\n" ); } : { printf( "x <= 10" ); printf( "\n" ) };//question, something like this
Thanks, Daniel.