Check out example codes for "calculate max of three numbers using ternary operator in c". It will help you in understanding the concepts better.

Code Example 1

big = a > b ? ( a > c ? a : c) : (b > c ? b : c) ;

Learn ReactJs, React Native from akashmittal.com