#include <stdio.h>
int main(void) {
int a[3] = {1,2,3};
int *p = a;
for(int i=0; i<3; i++){
printf("a[%d]:%d \n", i
, a
[i
]); printf("p[%d]:%d \n", i
, p
[i
]); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgYVszXSA9IHsxLDIsM307CgkKCWludCAqcCA9IGE7CgkKCWZvcihpbnQgaT0wOyBpPDM7IGkrKyl7CgkJcHJpbnRmKCJhWyVkXe+8miVkIFxuIiwgaSwgYVtpXSk7CgkJcHJpbnRmKCJwWyVkXe+8miVkIFxuIiwgaSwgcFtpXSk7Cgl9CglyZXR1cm4gMDsKfQo=