short if c code example
Example 1: if statement shorthand c
if (true)
printf("This is the shorthand");
// OR
(true) ? (/*run if true*/) : (/*run if false*/);
Example 2: if statement c short form
(integer == 5) ? (THENEXPR) : (ELSEEXPR);
if (true)
printf("This is the shorthand");
// OR
(true) ? (/*run if true*/) : (/*run if false*/);
(integer == 5) ? (THENEXPR) : (ELSEEXPR);