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 difference between && and & in c?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is difference between main and void main?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is c preprocessor mean?
Difference between linking and loading?
What is %d called in c?
Explain the difference between the local variable and global variable in c?
If errno contains a nonzero number, is there an error?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is the size of enum in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is typedef struct in c?
Can a program have two main functions?