Home> Common Problem> body text

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

藏色散人
Release: 2021-12-07 11:08:35
Original
64287 people have browsed it

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!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!