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 The Difference Between Null And Void Pointer?
What are the 4 data types?
Why is c still so popular?
Is c procedural or object oriented?
Where are some collections of useful code fragments and examples?
Why do we use static in c?
How can you access memory located at a certain address?
Explain 'bit masking'?
Write a program to print fibonacci series using recursion?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Which function in C can be used to append a string to another string?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
How is actual parameter different from the formal parameter?
What is FIFO?
Are pointers integers in c?