Ternary conditional operator: Difference between revisions

Content deleted Content added
clarity
Line 49:
 
==Usage==
The conditional operator's most common usage is to makecreate a terse, simple conditional assignment statement. For example, if we wish to implement some C code to change a shop's normal opening hours from 9 o'clock to 12 o'clock on Sundays, we may use
 
<syntaxhighlight lang="c">