Current location - Quotes Website - Signature design - What is the integer length of VB?
What is the integer length of VB?

The lengths are 16 bits (2 bytes) and 32 bits (4 bytes) respectively. The maximum value is 65536. 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, and long is a 64-bit integer, representing the range: -2^63~2^63-1-long is a long integer.

On 32-bit machines, the range of signed basic int is -32768 to 32767 (-2^15--2^15-1).

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

Extended information:

Long integer in C language:

Int is the basic integer type of C language, which can meet our needs for processing 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. Shorts, like integers, are signed integers.

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

3. LongLongint (abbreviation: LongLong), a type added by the C99 standard, signed integer.

4. Unsigned integer type (abbreviation: unsigned), unsigned integer, cannot represent negative numbers.

5. Unsigned long (abbreviation: unsigned long).

You cannot represent a negative number.

6. Unsigned short, an unsigned integer, cannot represent a negative number.

7. unsignedlonglongint adds type, unsigned integer.

8. By default, all unsigned integer types are signed integers. Signing in front of these integer types makes it clearer to the reader that these are signed integers, although signed or unsigned means signed integers. For example: signed int equals int.

Note that C only specifies short <= int <= long int. This depends on the compiler. Long int is not always 64-bit, and many times the range of Long int and int is the same.