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 is FIFO?
What is the correct declaration of main?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is difference between Structure and Unions?
Explain how can you tell whether a program was compiled using c versus c++?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is calloc()?
What do you mean by recursion in c?
What does the error message "DGROUP exceeds 64K" mean?
Explain what is page thrashing?
How can I do serial ("comm") port I/O?
What are the properties of union in c?
Do you know pointer in c?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me