Check out example codes for "how make a character in c scanf". It will help you in understanding the concepts better.

Code Example 1

scanf(" %c", &c);

Learn ReactJs, React Native from akashmittal.com