Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - The Difference between Basic Integer and Long Integer in C Language
The Difference between Basic Integer and Long Integer in C Language
The basic stereotypes of C, like long integers, come with the development of computer technology. Early computers had 16 bits, integers had 16 bits, and int long had 32 bits, but the ranges were different. With the development of computers and the development of C language standards, the mainstream of computers is 32 bits, so resources are no longer so tight. C99 stipulates that int is 32 bits, and so is long. The original 16 bit int is the same as short.

At present, TC's 16-bit compiler int is still 2 bytes, but mainstream compilers are all 4 bytes. I wonder what compiler the landlord is using.

I hope the landlord can adopt it;