Check out example codes for "printf("%d", 10 ? 0 ? 5:1:1:12) what will print". It will help you in understanding the concepts better.

Code Example 1

printf("%d", 10 ? 0 ? 5:1:1:12)

Learn ReactJs, React Native from akashmittal.com