Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language on pointer address, integer address, addition and subtraction, and then change back to the pointer and then access the pointer.
C language on pointer address, integer address, addition and subtraction, and then change back to the pointer and then access the pointer.
int? *ptr? =? (int? *)((int)a+ 1);

After assignment, ptr does not point to any element of array a, but to the second byte of the first element. * The value read by *ptr is the shaping of the last three bytes of the first element and the first byte of the second element, so it is 2 to the 25th power. This is because it should be 256 in short segment mode and big end mode, so it is more intuitive to draw!