#include <stdio.h>
int main() {
int a[2][3]={{-3, 14, 5}, {1, -10, 8}};
int *b[]= {a[0], a[1]};
int *p=b[1];
printf("%d ", *b[1]); //a[1][0] 출력
printf("%d ", *(++p)); //a[1][0]에서 a[1][1]로 포인터 위치 변경 저장 후 값 출력
printf("%d ", *(--p -2));
//a[1][1]에서 시작 a[1][0] 감소 후 포인터 위치 저장 -2만큼 이동하여 a[0][1]의 값 출력
}
To embed this project on your website, copy the following code and paste it into your website's HTML: