Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the integer length of VB?
What is the integer length of VB?
The maximum length is 16 bits (2 bytes) and 32 bits (4 bytes) respectively, and the extended byte data type can be regarded as an unsigned integer with a length of 8 bits.

Integer is a 32-bit integer of type int, long is a 64-bit integer, and the range is -2 63 ~ 2 63- 1-long is a long integer.

In a 32-bit machine, the signed basic int ranges from -32768 to 32767 (-215-215-1).

There is not much difference between the two. VB is a commonly used data type.

Extended data:

Long integers in c language;

Int is the basic integer type of C language, which can meet our needs of dealing with general data. C also provides four keywords that can modify int: short, long, signed and unsigned.

Using these four keywords, the C language standard defines the following integer types:

1. Short integers, like integers, are signed integers.

2.longint (abbreviation: long), a signed integer.

3. The type added by 3.C99 standard, Longing int (abbreviation: Longing), is a signed integer.

4. Unsigned integer (abbreviation: unsigned integer), an unsigned integer, cannot represent a negative number.

5. Unsigned long integer (abbreviation: unsigned long).

You cannot represent a negative number.

6. Unsigned short integers, unsigned integers, cannot represent negative numbers.

7. unsigned longrongint addition type, unsigned integer.

8. By default, all unsigned integer types are signed integers. Signing in front of these integer types can make readers see more clearly. These are signed integers, although signed or unsigned means signed integers. For example, a signed int equals int.

Note that c only specifies short integers.