Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the use of long plastic surgery in C language?
What is the use of long plastic surgery in C language?
When int cannot represent the required data size, we need to use long integer.

Long integer is a representation of data type in programming, usually represented by long.

But in some platforms, long and int represent the same range.

But we should not only consider one system, but also consider portability.

16 bit system: long is 4 bytes, and int is 2 bytes.

32-bit system: long is 4 bytes and int is 4 bytes.

64-bit system: long is 8 bytes and int is 4 bytes.

In different systems, they represent different ranges, so it is necessary to set long and int, although sometimes they represent the same range.