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

What is struct node in c?

1017


In C, What is the #line used for?

2095


What is file in c preprocessor?

1088


Do you know pointer in c?

987


What is nested structure in c?

1011


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1717


What is the difference between abs() and fabs() functions?

1059


What is the difference between int main and void main?

996


What is the most efficient way to count the number of bits which are set in an integer?

1000


What functions are used in dynamic memory allocation in c?

1016


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1723


What is function pointer c?

1028


What is the difference between single charater constant and string constant?

1029


Why is event driven programming or procedural programming, better within specific scenario?

2364


Explain zero based addressing.

964