what is the use of getch() function in C program..
difference b/w getch() and getche()??
Answer Posted / lekha
Both getch() and getche() are used to read single character
there is very little difference
-getch() doesn't display output to screen if used without lvalue
-getche() display output to screen even if used without lvalue
following example will clear this.....
1.
main()
{
getch();
}
2.
main()
{
getche();
}
after running above programs...............
when you press any key, you'll exit from output screen
verify the output by pressing alt+F5
1. will not show anything
2.will show the key you were pressed......
hope you get it.............
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is a string?
What are data types in c language?
What is an identifier?
show how link list can be used to repersent the following polynomial i) 5x+2
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
I need testPalindrome and removeSpace
#include
Can you subtract pointers from each other? Why would you?
Are pointers integer?
Why are algorithms important in c program?
How do you write a program which produces its own source code as output?
What is oops c?
Do you have any idea about the use of "auto" keyword?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
What is the 'named constructor idiom'?
What is the use of bit field?