Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the difference between long integer and short integer in C language application?
What is the difference between long integer and short integer in C language application?
Long integer is long integer and short integer is short integer.

The length of long integer memory is 4 bytes (32-bit binary), and the length of short integer memory is 2 bytes (16-bit binary).

The range of numerical values that can be expressed is different. Long int has a larger range than short int.

The advantage of short integer is that it saves memory cells.