Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What is the difference between long long in C language?
What is the difference between long long in C language?

1. Integer (INTEGER) data is numerical data that does not contain a decimal part, represented by the letter I. Integer data is only used to represent integers and is stored in binary form.

2. The binary bit length of the short integer type is 16, and the long integer type is 32 bits. That is to say, the long integer type can represent integers with more digits. The range of integers that can be represented by short integers is -32768~32767.

3. Long integer is -2147483648~2147483647. For example, if there is a number 32780, it can only be represented by a long integer, not a short integer.

4. Long integer is a way of expressing data types in programming. Long is usually used to represent long integer. The range of long signed 64-bit integer is -2^63-2^63 -1 Int64unsigned long unsigned 64-bit integer 0-2^64-1 UInt64. :

The difference is: C's basic integer and long integer came with the development of computer technology. Early computers were 16-bit, integers were 16-bit, and int long was 32-bit, but their ranges were different. With the development of computers and the development of C language standards, the mainstream of computers is 32-bit, so resources are no longer so tight. C99 stipulates that int is 32-bit and long is the same.