printf("%p\n", (void*) (x));
printf("%p\n", (void*) (x + 1));
printf("%p\n", (void*) (&x));
printf("%p\n", (void*) (&x + 1));
Assuming that n = x is the address of the first element, the code above is
respectivelyI don't think it's necessary to explain 1-3 separately, and if you explain 4
&x
is the int (*)[4]
type, so you can call it 4 *sizeof(int)
.
© 2024 OneMinuteCode. All rights reserved.