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 / m@ht@b ahm@d

getchar():- this function returns a character that has been recently typed. the typed character is echoed to the computer screen. after typing the appropriate character the user is required to press enter.

getch():- This function also returns a character that has been recently typed, bet neither the user is required to press enter key after entering the character nor the typed character echoed to the computer screen.

getche():- the advantage of this function over getchar() is that as soon as the user types a character, the character is immediately accepted, i.e. the user is not required to press enter key after typing a character.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1334


Why doesn't C support function overloading?

2611


Is exit(status) truly equivalent to returning the same status from main?

1008


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

946


What is array in c with example?

1166


What is a pragma?

1078


Linked lists -- can you tell me how to check whether a linked list is circular?

1032


What are the 4 types of functions?

996


Does free set pointer to null?

953


Explain 'bus error'?

1014


How can I generate floating-point random numbers?

1041


code for quick sort?

1985


What are the disadvantages of external storage class?

1005


how to find anagram without using string functions using only loops in c programming

3135


What is the use of getchar functions?

1127