#include <stdio.h>

int main(int argc, char *argv[]) {
    int *a;
    int b[5] = {2, 4, 7};                           // b의 주소는 5개 {2, 4, 7, 0, 0}으로 저장
    a=&b[0];                                        // a 포인터가 b 주소를  가리킴
    printf("%d, %d, %p\n", *a+3, *(a+3), a+3);      // b[0]번지에 3을 누적한 값, b[3]의 값, b[3]의 주소
    return 0;
}

Embed on website

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