You are here : cpp0getch

getch() - 0

getch() in c language: getch() function prompts the user to press a character and that character is not printed on screen, getch header file is conio.h.


Syntax

getch()


Example

#include <conio.h>
void main()
{
	char ch;
	...
	...
	ch=getch();	//get a character input
	...
	...
}


Output / Return Value

ASCII value of character input.


Limitations

Available in Turbo C/C++.

Not available in New C/C++ Compilers.


Alternatives / See Also


Reference