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 / barath krishnan

getchar() is very similar to using scanf with %c. The getch() function is normally used in 2 cases
1 To read any character not just numbers and alphabets but any
non white space character ( any key oder dan num/caps/scroll locks or tab keys)
2 To keep reading from a stream of inputs without forcing the user to press enter key at the end of each input unlike getchar()

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

1110


How can I copy just a portion of a string?

1318


which type of aspect you want from the student.

2168


What is a scope resolution operator in c?

1282


What is a buffer in c?

1010


What is character constants?

1190


What is the difference between strcpy() and memcpy() function in c programming?

1096


How can I delete a file?

1071


What are the keywords in c?

1129


where are auto variables stored? What are the characteristics of an auto variable?

1077


Can we change the value of #define in c?

1001


What is the code in while loop that returns the output of given code?

2001


Is c is a low level language?

1146


In C, What is the #line used for?

2218


How we can insert comments in a c program?

1135