0
Question in C language.
What is the difference between getch() and getch e() ?
2 Réponses
+ 3
getch():
getch() is a nonstandard function and is present in conio.h header file which is mostly used by MS-DOS compilers like Turbo C. It is not part of the C standard library or ISO C, nor is it defined by POSIX (Source: http://en.wikipedia.org/wiki/Conio.h)
Like above functions, it reads also a single character from keyboard. But it does not use any buffer, so the entered character is immediately returned without waiting for the enter key.
getche()
Like getch(), this is also a non-standard function present in conio.h. It reads a single character from the keyboard and displays immediately on output screen without waiting for enter key.
As referenced from geeksforgeeks.org
https://www.geeksforgeeks.org/difference-getchar-getch-getc-getche/
0
Ok , like so far.