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
Explain how can you determine the size of an allocated portion of memory?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is difference between function overloading and operator overloading?
Is main is user defined function?
What are the disadvantages of a shell structure?
write a program in c language to print your bio-data on the screen by using functions.
What is an expression?
How many types of operator or there in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What the different types of arrays in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
int i=10; printf("%d %d %d", i, i=20, i);
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
How pointers are declared?