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


Please Help Members By Posting Answers For Below Questions

A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

668


Can a program have two main functions?

572


What is openmp in c?

612


What is the difference between exit() and _exit() function in c?

584


What is array in C

710






What is the difference between the expression “++a” and “a++”?

650


What’s a signal? Explain what do I use signals for?

606


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2008


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1252


What are the application of c?

647


how is the examination pattern?

1597


What are the features of c language?

621


What are the __date__ and __time__ preprocessor commands?

573


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1855


What is difference between structure and union with example?

595