This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
one_line [2018/09/19 15:01] supergnu created |
one_line [2018/09/19 17:16] supergnu |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== One line If in C ====== | ====== One line If in C ====== | ||
+ | Often called ternary operators. | ||
A really handy way to write condensate and yet easily readable code in C is using one line if when doing only simple operation in the if. \\ | A really handy way to write condensate and yet easily readable code in C is using one line if when doing only simple operation in the if. \\ | ||
<WRAP center round tip 60%> | <WRAP center round tip 60%> |