getchar()
is a standard function that gets a character from the stdin.
getch()
is non-standard. It gets a character from the keyboard (which may be different from stdin) and does not echo it.
getchar()
is a standard function that gets a character from the stdin.
getch()
is non-standard. It gets a character from the keyboard (which may be different from stdin) and does not echo it.