what is the difference between getch() and getchar()?
Answer Posted / arjun tiwari
What is difference between getchar and getch?
Computer Programming Questions
Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > C Programming
View Slide Show
Best Answer
Getchar() will accept a character from keyboard displays immediately while typing and need Enter key to pressed for proceeding.
Getch() Normally we will use it at the end of the main(). It just accepts a key stroke and never displays it and proceeds further.
Getche() will accept a character from keyboard display it immediately does not wait for Enter key to pressed for proceeding.
__________________________________________________________________
getch() - get character from screen without echo and compiler didn't wait for another key.
getche() - get character from screen and compiler didn't wait for another key
getchar() - get character from screen and compiler wait for another key.
_____________________________
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is wrong in this statement? scanf(“%d”,whatnumber);
What are terms in math?
What are c preprocessors?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
Where are c variables stored in memory?
What is 1d array in c?
explain how do you use macro?
What are operators in c?
Calculate 1*2*3*____*n using recursive function??
What is variable in c example?
What is a global variable in c?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
When the macros gets expanded?
What is the use of a semicolon (;) at the end of every program statement?