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 / arjun tiwari

What is difference between getchar and getch?
Computer Programming Questions
Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > C Programming
View Slide Show
Best Answer
Getchar() will accept a character from keyboard displays immediately while typing and need Enter key to pressed for proceeding.

Getch() Normally we will use it at the end of the main(). It just accepts a key stroke and never displays it and proceeds further.
Getche() will accept a character from keyboard display it immediately does not wait for Enter key to pressed for proceeding.
__________________________________________________________________
getch() - get character from screen without echo and compiler didn't wait for another key.
getche() - get character from screen and compiler didn't wait for another key
getchar() - get character from screen and compiler wait for another key.
_____________________________

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1754


what is event driven software and what is procedural driven software?

2617


What are lookup tables in c?

1033


Explain why c is faster than c++?

1124


What does s c mean on snapchat?

1184


Can you write the function prototype, definition and mention the other requirements.

1197


Explain how do you generate random numbers in c?

1128


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2125


Why does the call char scanf work?

1261


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1169


How do we print only part of a string in c?

1078


Explain the difference between strcpy() and memcpy() function?

1063


Explain what is the heap?

1100


What is difference between union and structure in c?

1242


Is it possible to execute code even after the program exits the main() function?

1391