#include <stdio.h>
int main(void)
{
int(*ptr)[10];
int a[10] = {99, 1, 2, 3, 4, 5, 6, 7, 8, 9};
int b[10] = {9, 8, 7, 6, 5, 4, 3, 2, 1, 0};
ptr = &a;
ptr = &b;
printf("%d\n", ptr[0][0]);
printf("%d\n", ptr[1][0]);
return 0;
}
9
99
나오는데
int(*ptr)+
이걸 어떤 형태로 생각해야 쉬울까여 ? ? ?
int ptr++ ? ?
주소 할당이 어떻게 되는지 모르겠네여
배열은 굳이 포인터로 안해도될텐데 ㅇㅅㅇ - dc App