What is the difference between getch() and getche()?

Answer Posted / vinod kumar

getch() returns the character you typed without displaying
it on the screen.
getche() returns the character you typed by displaying
(echoing) it on the screen.
and finally, getchar() works similarly and echos the
character that u typed on the screen after "enter" is given.

Is This Answer Correct ?    31 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between c and python?

588


What is data structure in c and its types?

598


Explain the use of keyword 'register' with respect to variables.

594


What is the c language function prototype?

651


When the macros gets expanded?

792






Tell me when is a void pointer used?

651


What is sizeof int in c?

608


What are the key features in c programming language?

622


Which node is more powerful and can handle local information processing or graphics processing?

831


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15057


Why clrscr is used after variable declaration?

1045


What is register variable in c language?

609


What is a far pointer in c?

601


When should you use a type cast?

595


Explain the difference between malloc() and calloc() in c?

581