Breaking News
Loading...

Difference between getch(), getchar(), and getche()?

 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.


0 comments:

Post a Comment

 
Toggle Footer