Loading

Showing posts with label Getc Example. Show all posts

C - Program - Getc Example

Getc Example


#include <stdio.h>

int main(void)
{
   char ch;

   printf("Input a character:");
/* read a character from the standard input stream */
   ch = getc(stdin);
   printf("The character input was: '%c'\n", ch);
   return 0;
}

Posted in | Leave a comment