Check out example codes for "if statement shorthand c". It will help you in understanding the concepts better.

Code Example 1

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

// OR

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

Learn ReactJs, React Native from akashmittal.com