Putchar() function prints or writes a character to standard output (monitor). This function takes one character as argument and writes that character on standard output.
Syntax of putchar function
int putchar ( int character );
Parameters
putchar function takes one parameter of type int as an argument. This parameter denotes the character to be written on standard output. Note that, this parameter of type int is internally converted to an unsigned char when written.
Example of putchar function
# include <stdio.h> int main () { char c; for (c = 'A' ; c <= 'Z' ; c++) putchar (c); return 0; }
More examples of putchar function in C