#include <stdio.h>
int main() {
int x[10] = {0};
scanf("%d", x
); // x[0]の値に入力された値が格納される
scanf("%d", &x
[9]); // x[9]の値に入力された値が格納される
// 配列の最初と最後の要素を表示
printf("最初の要素: %d\n", *x
); // *xはx[0]と同じ意味 printf("最後の要素: %d\n", *(x
+ 9)); // x + 9はx[9]のアドレスを指す
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCB4WzEwXSA9IHswfTsgIAoKICAgIHByaW50Zigi5pyA5Yid44Gu6KaB57Sg44Gu5YCk44KS5YWl5Yqb44GX44Gm44GP44Gg44GV44GEOiAiKTsKICAgIHNjYW5mKCIlZCIsIHgpOyAgLy8geFswXeOBruWApOOBq+WFpeWKm+OBleOCjOOBn+WApOOBjOagvOe0jeOBleOCjOOCiwoKICAgIHByaW50Zigi5pyA5b6M44Gu6KaB57Sg44Gu5YCk44KS5YWl5Yqb44GX44Gm44GP44Gg44GV44GEOiAiKTsKICAgIHNjYW5mKCIlZCIsICZ4WzldKTsgIC8vIHhbOV3jga7lgKTjgavlhaXlipvjgZXjgozjgZ/lgKTjgYzmoLzntI3jgZXjgozjgosKCiAgICAvLyDphY3liJfjga7mnIDliJ3jgajmnIDlvozjga7opoHntKDjgpLooajnpLoKICAgIHByaW50Zigi5pyA5Yid44Gu6KaB57SgOiAlZFxuIiwgKngpOyAgICAgICAgICAvLyAqeOOBr3hbMF3jgajlkIzjgZjmhI/lkbMKICAgIHByaW50Zigi5pyA5b6M44Gu6KaB57SgOiAlZFxuIiwgKih4ICsgOSkpOyAgICAvLyB4ICsgOeOBr3hbOV3jga7jgqLjg4njg6zjgrnjgpLmjIfjgZkKCiAgICByZXR1cm4gMDsKfQ==