Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In C language, is Int a 32-bit integer or a 64-bit integer, and how many bits is it in tc?
In C language, is Int a 32-bit integer or a 64-bit integer, and how many bits is it in tc?
This is a place where people fall by mistake. I didn't understand it until the second half of senior two. The type of INT written by Tang Haoqiang's C language program is 16 bits. But when programming in VS 2008, I found that int has 32 bits and 64 bits. When I compiled 5 1 single chip microcomputer with KEIL, I found that there was no problem with INT 16 bits or more, and there was no problem with 32 bits or more. So I guess the so-called INT 16 bit is wrong and can be designed, which is related to the compiler and hardware, not dead.