/* example that demonstrates the use of functions */ #include #include int main (void) { char Ch, k = 'A', dig = '1'; int i = 1; printf("i = %i\n",i); printf("Please enter a character "); /*use getc to get a single character from standard input (keyboard */ Ch = getc(stdin); /*use putc to write to standard output */ putc(Ch,stdout); printf("\nk = %c, dig = %c, Ch = %c\n",k,dig,Ch); }