Check out example codes for "include ‘<stdlib.h>’ or provide a declaration of ‘exit’". It will help you in understanding the concepts better.

Code Example 1

extern void exit();

Learn ReactJs, React Native from akashmittal.com