Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the length of the C++ basic data type?
What is the length of the C++ basic data type?
The C++ standard only stipulates that int should be at least 16 bits and not shorter than short int. There is no requirement for its number of bits, which depends on how the compiler implements it. In fact, C++ does not require the specific length of all arithmetic types.

However, on most machines, most compilers implement int as 32 bits.