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

How macro execution is faster than function ?

1204


Why c is called procedure oriented language?

1059


Is it possible to have a function as a parameter in another function?

1084


What are multidimensional arrays?

1126


What is putchar() function?

1170


Hi can anyone tell what is a start up code?

2086


Explain c preprocessor?

1120


What is the g value paradox?

1176


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1161


Why is c called a mid-level programming language?

1213


What is the difference between a free-standing and a hosted environment?

1151


What are the differences between Structures and Arrays?

1219


What is hungarian notation? Is it worthwhile?

1230


How many keywords are there in c?

1082


How many levels deep can include files be nested?

1144