Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - The Value Range of Long Integer and Integer in C Language
The Value Range of Long Integer and Integer in C Language
In 1 and C languages, the value range of long integer constant: is Decimal-2147483647 ~+2147483647, which occupies at least 4 bytes in the computer. Byte length is related to operating system and compiler. Longint is at least 32 bits long, while a 64-bit Unix-like system is 64 bits long.

2. Integer constant in C language: it is a common integer, including positive integer, negative integer and 0, and its data type is obviously integer. The memory size and numerical range of integer constants depend on the compiler.

Extended data

Long Integer in VB of C Language

There are two types of integers in VB: integer and Long, both of which are signed integers.

Integer variables are stored in the form of 16 bits (2 bytes) ranging from-32,768 to 32,767. The type declaration character of an integer is a percent sign (%).

Long variables are stored as 32-bit (4 bytes) signed values ranging from -2 147483648 to 2 147483647 (about 2 10 billion). The type declaration character of Long is ampersand; )。