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
What do you mean by Recursion Function?
What is the best organizational structure?
What does int main () mean?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is register variable in c language?
Is c is a high level language?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What is line in c preprocessor?
Do pointers take up memory?
What are the salient features of c languages?
How can I remove the trailing spaces from a string?
How do I copy files?
Why is c fast?
Describe the order of precedence with regards to operators in C.
What is header file definition?