Table of Contents

getch

int getch();

description of getch

prompts the user to press a character and that character is not printed on screen

#include <stdio.h>
#include <conio.h>
 
int main (void) 
{
 
   int c;
   printf("type in a letter on your keyboard :");
   c = getch();
   putch(c);
   return 0;
 
}

output of getchc example

  type in a letter on your keyboard : x
  x