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 / pinky

getchar() is a function call: it reads in a single
character and waits for the user to hit 'enter key' before
reading the character. This line is included because many
compiler environments will open a new console window, run
the program, and then close the window before you can see
the output. This command keeps that window from closing
because the program is not done yet because it waits for
you to hit enter. Including that line gives you time to see
the program run.

getch() returns back on reading any character(a-z) or any
hit to the keyboard.

Is This Answer Correct ?    34 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is python a c language?

1010


What is memory leak in c?

1129


Why doesnt this code work?

1062


Can a variable be both constant and volatile?

1124


Write a Program to accept different goods with the number, price and date of purchase and display them

6237


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1953


write a program to print largest number of each row of a 2D array

2327


Why does notstrcat(string, "!");Work?

1144


what is the function of pragma directive in c?

1123


Is stack a keyword in c?

1082


Why isn't any of this standardized in c? Any real program has to do some of these things.

1213


Explain how do you search data in a data file using random access method?

1136


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

2058


what does static variable mean?

1106


What is keyword with example?

1065