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