Hey Grade 12 Students, your exams are near so work hard.

getch() vs getche() - Comparison table in C Programming

getch() vs getche() - Comparison Table
Comparison of getch() and getche() in C Programming

Aspect getch() getche()
Header Requires #include <conio.h> Requires #include <conio.h>
Functionality Reads a character without echoing it Reads a character and echoes it
Character Echoed No echo Echoed (visible on the screen)
Return Value Returns the character read (int) Returns the character read (int)
Buffer Doesn't wait for Enter key press Waits for Enter key press (buffered)
Portability Not standard C; system-dependent Not standard C; system-dependent

Note: The availability and behavior of these functions may vary depending on the system and compiler used. It's recommended to use standard C functions for better portability.

Getting Info...

About the Author

A free online educational resource provider.

Post a Comment

Please do not enter any spam link in the comment box.
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.