Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Add 1 to the integer variable address, why is it not offset by 1 byte?
Add 1 to the integer variable address, why is it not offset by 1 byte?

Because when declaring a variable, the compiler will record the type of the variable. After you declare an integer variable, the type of the address of the integer variable obtained is an integer pointer. Therefore, when adding 1, the compiler The address will be adjusted according to the number of bytes of the integer variable, and will point to the next integer variable location in this integer storage area, thereby completely skipping the current integer variable storage area