Write a single character to stdout.
The putchar() function writes the character c (converted to an unsigned char) to the standard output stream stdout. It is equivalent to putc(c, stdout).
putchar() returns the character written as an unsigned char cast to an int on success, or EOF on error. It is commonly used for character-by-character output.
putchar() is declared in <stdio.h>.
| Name | Description | Optional |
|---|---|---|
c |
The character to write. | No |
putchar('A'); /* Outputs: A */