+ 2
Difference between getchar(), getch() and getche()
2 Réponses
+ 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
+ 1
thanks you