Putchar function

Share it Please
putchar function is used to print the character on screen.it is also used to print the character stored in any variable.Let us see syntax of putchar:

Syntax:

putchar(variable or character);

Example for putchar function:

#include<stdio.h>
#include<conio.h>
main()
{
     char a;
     clrscr();
     printf("Enter Any character: ");
     a=getchar();
     printf("\nYou have entered: ");
     putchar(a);
     getch();

}