How does getchar() work?
Read solo lesson
Hope this will clear things : https://en.cppreference.com/w/c/io/getchar
getchar() reads from standard input. So getchar() is equivalent to getc(stdin)
You can use getchar() to read any part of the input?
Gets the character which we inputs...