getchar
This is a standard function that gets a character from the stdin.
Getch
This is a nonstandard function that gets a character from keyboard, does not echo to screen.
Getche
This is a nonstandard function that gets a character from the keyboard, echoes to screen.
Use getchar if you want it to work on all compilers. Use getch or getche on a system that supports it when you want keyboard input without pressing [Enter].
And note that the return value of all three is int! You need this to properly check for EOF.
GOOGLE IS YOUR FRIEND