Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between getch() and getche()?

Answer Posted / beulah david

Both getch() and getche() are used to read single character
there is very little difference
For Example.....
1.
main()
{
getch();
}
after running the above program

when you press any key, you'll exit from output screen
verify the output by pressing alt+F5

will not show anything
OUTPUT : black screen(nothing is displayed)

2.
main()
{
getche();
}

will show the key you were pressed

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 ?    15 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is typedef?

1356


Can one function call another?

1069


Are global variables static in c?

1129


Write a program which returns the first non repetitive character in the string?

1077


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2341


What is the difference between a string and an array?

1176


what is the difference between class and unio?

2327


Does c have class?

1069


What is ambagious result in C? explain with an example.

2571


What is the use of #include in c?

1047


How do I read the arrow keys? What about function keys?

1035


Why is it important to memset a variable, immediately after allocating memory to it ?

2029


Explain how do you determine a file’s attributes?

1022


In C language what is a 'dangling pointer'?

1085


What are the advantages of using new operator as compared to the function malloc ()?

1304