what is the difference between getch() and getchar()?
Answer Posted / m@ht@b ahm@d
getchar():- this function returns a character that has been recently typed. the typed character is echoed to the computer screen. after typing the appropriate character the user is required to press enter.
getch():- This function also returns a character that has been recently typed, bet neither the user is required to press enter key after entering the character nor the typed character echoed to the computer screen.
getche():- the advantage of this function over getchar() is that as soon as the user types a character, the character is immediately accepted, i.e. the user is not required to press enter key after typing a character.
Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
Are there constructors in c?
How macro execution is faster than function ?
What is array of structure in c programming?
What does typeof return in c?
What is ctrl c called?
Why is c called a mid-level programming language?
Process by which one bit pattern in to another by bit wise operation is?
What is volatile c?
What is memcpy() function?
Do you know the use of 'auto' keyword?
Write a program to print factorial of given number using recursion?
How can I discover how many arguments a function was actually called with?
What does struct node * mean?
Write program to remove duplicate in an array?
What is structure in c definition?