What does putchar mean in c language

王林
Release: 2020-06-17 13:29:20
Original
21623 people have browsed it

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)
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template