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 the difference between the = symbol and == symbol?
Tell me about low level programming languages.
application attempts to perform an operation?
I have seen function declarations that look like this
What are different types of operators?
What’s the special use of UNIONS?
Is struct oop?
Why use int main instead of void main?
Explain what is output redirection?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Is fortran faster than c?
Explain setjmp()?
What are the different types of endless loops?
What is the use of a semicolon (;) at the end of every program statement?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);