#include <stdio.h>
// 32bit 컴퓨터
// int = 4byte
// 배열의 시작 주소 7094
int main(int argc, char *argv[]) {
    int *a;
    int b[5] = {2, 4, 7}; //{2, 4, 7, 0, 0}
    a = &b[0];
    printf("%d, %d, %d \n", *a+3, *(a+3), a+3);
    //*a+3 = 2+3 = 5
    // *(a+3) = 0
    // a+3 = 7094 + 3*4byte = 7094+12 = 7106
    return 0;
}

Embed on website

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