example.c

#include <stdio.h>


int number = 5;


main.c


#include <stdio.h>

extern int number;


int main(void)

{

printf("%d", number);

return 0;

}



결과는 어떻게 될까요?


1. 5가 출력된다.

2. 링크 오류가 뜬다.

3. 컴파일 오류가 뜬다.

4. 초기화가 안됐다고 뜬다.


정답인 번호를 적어주시고 그 이유까지 적어주시면 감사하겠습니다.