Check out example codes for "what is stdin in c". It will help you in understanding the concepts better.

Code Example 1

//stdin accesses the keyboard, it's a file pointer

Learn ReactJs, React Native from akashmittal.com