what is the difference between getch() and getche()?
Answer Posted / rama krishna sidhartha
Here are some examples for getch() and getche() to distinguish :
Example for getch() :
main()
{
getch();
}
OUTPUT : black screen(nothing is displayed)
Example for getche() :
main()
{
getche();
}
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 ? | 40 Yes | 10 No |
Post New Answer View All Answers
What is meant by recursion?
What is scanf () in c?
Why can't I perform arithmetic on a void* pointer?
What does d mean?
Give differences between - new and malloc() , delete and free() ?
How are variables declared in c?
Why do we write return 0 in c?
Difference between goto, long jmp() and setjmp()?
Write a program to use switch statement.
using only #include
What is register variable in c language?
What is a void pointer in c?
What are the different types of control structures in programming?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }