+ 2

Difference between getchar(), getch() and getche()

30th Jun 2018, 11:31 AM
Shivanshu Gupta
Shivanshu Gupta - avatar
2 Respuestas
+ 8
Hello, Shivanshu Gupta ! Firstly, getch() and getche() are non standard library functions found in conio.h. Hence, they are useless and should never be used (nor the Turbo C/C++ compilers). The difference between getchar() and getc(FILE *stream) is that, getc can read input from any stream, while getchar can only read from the standard input. Thus you can say that  getchar() = getc(stdin) https://www.geeksforgeeks.org/difference-getchar-getch-getc-getche/ https://www.quora.com/What-is-the-difference-between-getchar-getc-getche-and-getch-in-C-programming
30th Jun 2018, 11:36 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 1
thanks you
30th Jun 2018, 11:37 AM
Shivanshu Gupta
Shivanshu Gupta - avatar