if statement shorthand c
snippet in c

if statement shorthand c

user2972

if (true)
	printf("This is the shorthand");

// OR

(true) ? (/*run if true*/) : (/*run if false*/);

if statement c short form

user9148

(integer == 5) ? (THENEXPR) : (ELSEEXPR);