✅ 목표 (Goal)

증분 링크가 무엇인지 알아보자..

✅ 내용 (Contents)

#include<stdio.h>

int abc(int n) {
    printf("ABC %d\\n", n);
    return 321;
}
int bbq(int n) {
    printf("BBQ %d\\n", n);
    return 123;
}

int main() {

    int (*p[2])(int) = { abc, bbq };
    printf("%p , %p\\n", abc, bbq);

    printf("%d %d\\n", (*p[0])(100), (*p[1])(200));

    return 0;
}

함수 포인터 배열 예제를 VS에서 돌리다가

서로 다르다는 점을 발견

KakaoTalk_20240328_145626299.png