#include <stdio.h>
int main(void)
{
    int rank[5] = { 1, 2, 3, 4, 5 };
    int* p = rank;
    printf("rank[2]の値は%d\n", rank[2]);
    printf("*(p+2)の値は%d\n", *(p + 2));
    *(p + 2) = *(p + 2) + 10;
    printf("変更したrank[2]の値は%d\n", rank[2]);
}
