#include <stdio.h>

int main() {
    int arr[3]={11, 22, 33};
    int *ptr=arr; // int * ptr=&arr[0]; 과 같은 문장
    printf("%d %d %d \n",*ptr, *(ptr+1), *(ptr+2));

    printf("%d ",*ptr); ptr++;
    printf("%d ",*ptr); ptr++;
    printf("%d ",*ptr); ptr--;
    printf("%d ",*ptr); ptr--;
    printf("%d ",*ptr); printf("\n");
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: