


This function does not take any parameters. This is there as part of the header file, so you must include it in your program. This function takes in a single character from the standard input ( stdin), and returns an integer. Let’s take a look at using this function, using a few examples. So, we can still use this function from Windows / Linux / Mac. While this is not a part of the C standard, this is still a POSIX C function. The getch() function is very useful if you want to read a character input from the keyboard. In this article, we’ll take a look at using the getch() function in C/C++.
