Home >Common Problem >How many bytes does char type data occupy in C language?
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.
#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
32-bit compiler
64-bit compiler
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!