Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the type of long long in C language?
What is the type of long long in C language?
"longlongint" is a 64-bit long integer data type in C language. Longlong belongs to int type. Generally speaking, it is twice as long as the type of longint and four times as large as the type of int.

"longlongint" can be abbreviated as "desire" in C language. As the enhanced data types of "Long" and "int", the integer range from -2 63 to 2 63- 1 can be supported. The preceding "long" is a 32-bit long integer data type, and the integer range can only support -2 3 1 to 2 3 1- 1.

"Longing int" and "unsignedlonglongint" are introduced into the C99 standard.

Extended data:

It should be noted that:

Longlong is a numerical type added later, which means that very old compilers (such as VC++6.0) do not support this data type.

Main new functions introduced by C99 standard:

1. The restrictions on the compiler have increased. For example, each line of source code needs at least 4095 bytes, and the names of variables and functions need 63 bytes (extern needs at most 3 1 byte).

2. New keywords such as restrict, inline, _ _Complex and _ _Bool have been added.

3. Support longlong, longdouble_Complex, float_Complex and other types.

4. Array with indefinite length. The length of the array is a variable. When you declare a type, you write an int [*]. But in terms of efficiency and execution, this is not a new type. So you can't use it in global or structural alliances. If you use something similar, the goto statement will be constrained.

5. Compared with the C89 standard, C99 introduces a new structure/array initializer, named designated initializer.

6. Support hexadecimal floating-point description.

7. A built-in local static character array variable is added, which can be used to get the function name of the current function.

8. The default return type of the function is int.

Baidu Encyclopedia -C99