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 are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
what is event driven software and what is procedural driven software?
What are lookup tables in c?
Explain why c is faster than c++?
What does s c mean on snapchat?
Can you write the function prototype, definition and mention the other requirements.
Explain how do you generate random numbers in c?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Why does the call char scanf work?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
How do we print only part of a string in c?
Explain the difference between strcpy() and memcpy() function?
Explain what is the heap?
What is difference between union and structure in c?
Is it possible to execute code even after the program exits the main() function?