Loading

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;
}

This entry was posted in . Bookmark the permalink.

Leave a reply