Integer variables are stored in the form of 16 bits (2 bytes) ranging from -32768 to 32767. The type declaration character of an integer is a percent sign (%).
Long integer variables are stored as 32-bit (4 bytes) signed values ranging from -2,147,483,648 to 2,147,483,647. The type declaration character of Long is ampersand; )。
2.
8 bits (1 byte)
2^ 15=32768
2 16 = 65536 is a long shaping. .
The first bit is the sign bit. So the maximum value that can be expressed is 2 15.
3.
The data type of variables determines how the bits representing these values are stored in computer memory.
Variables that store names are best expressed as string data types, because names are always composed of characters.
Numeric values are numeric types, such as integer, long integer, single precision and double precision.