#include <stdio.h>
int main() {
int a[] = {1,2,4,8};
int *p=a;
p[1]=3; //a[]={1,3,4,8}
a[1]=4; //a[]={1,4,4,8}
p[2]=5; //a[]={1,4,5,8}
printf("%d, %d\n", a[1]+p[1], a[2]+p[2]);
//a[1]+p[1]=4+4=8
//a[2]+p[2]=5+5=10
//8, 10 출력
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: