putchar() Write a Character to Stdout
#include <stdio.h>
int putchar(c);
int c; Character to be written
putchar() writes a single character to the standard output stream
'stdout'.
Returns: The character written, if successful. A return value of
EOF indicates an error. Since EOF is a legitimate value,
use ferror() to verify that an error has occurred.
-------------------------------- Example ---------------------------------
The following statements print the letters of the alphabet to the
screen.
#include <stdio.h>
int x;
main()
{
for (x = 65; x < 91; x++)
putchar(x);
}
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster