Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How many bytes is the length in C language?
How many bytes is the length in C language?
Long in C language is 4 bytes, which is a data type with signed and unsigned forms.

In signed language, the expression range of long is:-2147483648 ~ 2147483647.

In unsigned, the expression range of long is: 0~4294967295.

Extended data:

Integer variables can be divided into the following categories:

fundamental form

The type specifier is int, which may occupy 2 or 4 bytes of memory (usually on 16-bit computer and 32-bit computer respectively) according to the internal word length and compiler version of the computer, and its value is a basic integer constant.

Short integer

The type specifier is short int or short, occupying 2 bytes of memory, and its value is short integer constant.

Long integer

The type specifier is long int or long, occupying 4 bytes of memory, and its value is long integer constant.

Baidu encyclopedia-dragon

Baidu Encyclopedia = Integer