✅ 목표 (Goal)

✅ 아래 예제를 빌드해보자. 잘 될까?

.h에 함수의 정의를 넣고 빌드해보자. (문법적으로 문제는 없다.) 잘 된다.

#include <stdio.h>

#include "horse.h"
#include "donkey.h"

int main() {
    neigh();
    hee_haw();
    return (0);
}
#include <stdio.h>

void neigh() { // 말, 히힝
    printf("히힝\\r\\n");
}
#include <stdio.h>

void hee_haw() { // 당나귀, 히호
    printf("히호\\r\\n");
}

image.png

✅ .i 파일을 살펴볼것이므로 역시 printf는 싸악 빼자.

#include "horse.h"
#include "donkey.h"

int main() {
    neigh();
    hee_haw();
    return (0);
}