what is the difference between getch() and getche()?
Answer Posted / beulah david
Both getch() and getche() are used to read single character
there is very little difference
For Example.....
1.
main()
{
getch();
}
after running the above program
when you press any key, you'll exit from output screen
verify the output by pressing alt+F5
will not show anything
OUTPUT : black screen(nothing is displayed)
2.
main()
{
getche();
}
will show the key you were pressed
OUTPUT : u(the cursor waits for sometime untill you press
any key from the keyboard after pressing it immediately goes
to blue screen)
| Is This Answer Correct ? | 15 Yes | 9 No |
Post New Answer View All Answers
how is the examination pattern?
Where in memory are my variables stored?
How many types of sorting are there in c?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Which is best linux os?
Can you tell me how to check whether a linked list is circular?
Explain what is the advantage of a random access file?
write a proram to reverse the string using switch case?
How can you increase the allowable number of simultaneously open files?
What kind of structure is a house?
What does & mean in scanf?
What is the difference between malloc() and calloc()?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Write a C program to count the number of email on text
Are pointers really faster than arrays?