Code Snippets C

#include
int main(void)
{
char ch;
ch = getchar(); /* read a char */
printf("What you typed: %c", ch);
return 0;
}