Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What role does long integer play in C language? How to determine the number of digits of a long integer? In what program do long integers generally work? Ask God for an explanation.
What role does long integer play in C language? How to determine the number of digits of a long integer? In what program do long integers generally work? Ask God for an explanation.
There are 32-bit long integers, signed and unsigned. Which type to use depends on the data size of the program. The integer in VC++ seems to be 32 bits. I can't remember clearly. Anyway, you should use the right number, or you will waste resources. For example, if you want to define integer addition within 100, you can use unsigned short int instead of long.