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 getchar()?

Answer Posted / arjun tiwari

What is difference between getchar and getch?
Computer Programming Questions
Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > C Programming
View Slide Show
Best Answer
Getchar() will accept a character from keyboard displays immediately while typing and need Enter key to pressed for proceeding.

Getch() Normally we will use it at the end of the main(). It just accepts a key stroke and never displays it and proceeds further.
Getche() will accept a character from keyboard display it immediately does not wait for Enter key to pressed for proceeding.
__________________________________________________________________
getch() - get character from screen without echo and compiler didn't wait for another key.
getche() - get character from screen and compiler didn't wait for another key
getchar() - get character from screen and compiler wait for another key.
_____________________________

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong in this statement? scanf(“%d”,whatnumber);

1190


What are terms in math?

978


What are c preprocessors?

1125


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7988


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

3206


Where are c variables stored in memory?

1023


What is 1d array in c?

1029


explain how do you use macro?

1099


What are operators in c?

962


Calculate 1*2*3*____*n using recursive function??

1982


What is variable in c example?

993


What is a global variable in c?

954


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1024


When the macros gets expanded?

1339


What is the use of a semicolon (;) at the end of every program statement?

1413