Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Is the address of the pointer variable a constant?
Is the address of the pointer variable a constant?
Pointers have two properties: 1. Address, 2. Data type.

His address is the address of the variable that the pointer points to. It is wrong for the two upstairs to assign integer constants directly to pointer variables. Although the compiler only has warnings and no errors, it is meaningless. It's a very dangerous operation.

So is this address a constant? In general, after applying for memory space, the position of variables will not change.

The address will not change. However, it is not standard to say that he is a constant. Because with or without variables. Memory addresses always exist.