In fact, there are several ways to do pause execution of your program until you type something, one way to do it is with getchar () (which is part of the stdio.h function set and the official standard library), it will do the same effect. as getch() (this function is part of the conio.h function set, which is not an official library).
If your problem is that you want to avoid pressing Enter every time you type a character that is not very clear in your question), read the following: To avoid printing, enter with any getchar ()
source share