Home>Article> How many bytes does char type data occupy in C language?

How many bytes does char type data occupy in C language?

藏色散人
藏色散人 Original
2021-12-07 11:08:35 64281browse

Char type data in C language occupies 1 byte, because the char data type in C language is an integer type (integer type), and its size is defined as 1 Byte.

How many bytes does char type data occupy in C language?

#The operating environment of this article: Windows 7 system, Dell G3 computer.

How many bytes does char type data occupy in C language?

char 1 byte

16-bit compiler

How many bytes does char type data occupy in C language?

32-bit compiler

How many bytes does char type data occupy in C language?

64-bit compiler

How many bytes does char type data occupy in C language?

Extended information

Char data type in C language

The char data type in C language is an integer type (integer type), and its size is defined as 1 Byte.

That is, sizeof (char) ≡ 1

Recommended study: "c Language Tutorial"

The above is the detailed content of How many bytes does char type data occupy in C language?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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