Tuesday, 9 December 2014

Program to access a character from getchar function
#include<stdio.h>
main()
{
 int ch;
printf("enter any character:");
ch=getchar();
printf("entered character:");
putchar(ch);
}
OutPut:
enter any character:a
entered character:a