포인터 좀 자세히 알려고자 질문 좀 드릴꼐여~;;
#include
main ()
{
int ttt[3][2] = {{6,3}, {5, 9} , {8, 2}};
int (*ppp)[2] = ttt;
printf("ppp+0값 %d\n", ppp + 0);
printf("ppp+1값 %d\n", ppp + 1);
printf("ppp+2값 %d\n", ppp + 2);
printf("*(ppp + 0)값 %d\n", *(ppp + 0));
printf("*(ppp + 1)값 %d\n", *(ppp + 1));
printf("*(ppp + 2)값 %d\n", *(ppp + 2));
}
답
ppp+0값 -1073747184
ppp+1값 -1073747176
ppp+2값 -1073747168
*(ppp + 0)값 -1073747184
*(ppp + 1)값 -1073747176
*(ppp + 2)값 -1073747168
이런식의 답이 나오더군여 이해는 했는데 여기에다가 sizeof 연산자를 대입해보니..