Home > Article > Backend Development > What does putchar mean in c language
putchar is a function in C language. The function of this function is to output a character to the terminal.
Format:
putchar(c)
c can be a character enclosed in single quotes, or it can be a decimal integer between 0 and 127 (including 0 and 127), It can also be a character variable defined in advance with char.
1. When c is a character enclosed in single quotes, the character is output;
2. When c is a character between 0 and 127 (including 0 and 127) When it is a decimal integer, it will be regarded as the ASCII code of the corresponding character, and the character corresponding to the ASCII code will be output;
3. When c is a character variable, the character pointed to by the variable will be output.
Recommended tutorial: c language tutorial
The above is the detailed content of What does putchar mean in c language. For more information, please follow other related articles on the PHP Chinese website!