User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:getch

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

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/conio.h/getch.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz