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

WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

2054


How can I remove the trailing spaces from a string?

782


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2382


write an algorithm to display a square matrix.

2403


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

956






What is scanf () in c?

807


When do we get logical errors?

778


What is variables in c?

784


Why pointers are used?

801


4. main() { int c=- -2; printf("c=%d",c); }

1533


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

808


Explain the difference between structs and unions in c?

736


What is a c token and types of c tokens?

783


What are types of functions?

731


Describe explain how arrays can be passed to a user defined function

820