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

How many data structures are there in c?

610


What is data structure in c language?

599


Is a house a shell structure?

688


Can true be a variable name in c?

555


Is null valid for pointers to functions?

603






What are the advantages of using Unions?

642


Without Computer networks, Computers will be half the use. Comment.

1865


What is storage class?

651


Differentiate between calloc and malloc.

750


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

665


Why is struct padding needed?

624


Write a program to swap two numbers without using third variable in c?

611


How can I invoke another program or command and trap its output?

608


What is the need of structure in c?

560


What are pointers? Why are they used?

626