What is difference between getch() and getche() in c
Answers
Answered by
2
Answer:
getche() reads a single character from the keyboard and displays immediately on output screen without waiting for enter key. 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).
Answered by
2
getch( ) :- getch( ) is a function from <conio.h> and it terminate the program after pressing key from keyboard.
getche( ) :- getche( ) is a function from <conio.h> and it display a single character immediately after pressing any key from keyboard.
Similar questions
English,
6 months ago
Business Studies,
6 months ago
English,
6 months ago
Math,
1 year ago
Math,
1 year ago