#include <stdio.h>
void main() {
int array[]={100, 200, 300, 400, 500};
int *ptr;
ptr = array; // ptr 포인터가 array 처음 가리킴
printf("%d\n", *(ptr+2)+10); // ptr을 2칸 이동하여 array[2] 값에 10을 추가함
}
To embed this project on your website, copy the following code and paste it into your website's HTML: