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
What is sizeof int in c?
Explain what is the concatenation operator?
How can you draw circles in C?
Are enumerations really portable?
Write a program to know whether the input number is an armstrong number.
What are the 4 data types?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Is there sort function in c?
What is c language used for?
What is array of structure in c programming?
What is the meaning of 2d in c?
Why do we use static in c?
What is c variable?
given post order,in order construct the corresponding binary tree
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA