Check out example codes for "how to use ? in c". It will help you in understanding the concepts better.

Code Example 1

result = comparison ? if_true : if_false;

Learn ReactJs, React Native from akashmittal.com