Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Why does the shape int occupy different bytes in vc++ and win-tc?
Why does the shape int occupy different bytes in vc++ and win-tc?
Because the tools are different.

Teacher Tan Haoqiang's "C Programming" (third edition) mentioned on page 40:

The binary form of decimal number 10 is 10 10. Turbo C 2.0 and Turbo C++ 3.0 are integer variables, and 2 bytes are allocated in memory (different compilation systems allocate different bytes to integer data, and Visual C++6.0 allocates 4 bytes. ....)