两个文件可以相互引用另一个文件的函数,编译不会出问题
1.c
#include<stdio.h>
extern int asdf();
int qwer()
{
asdf();
}
int zxcv()
{
printf("2222222\n");
}
int pou();
int main()
{
qwer();
pou();
}
2.c
#include<stdio.h>
int asdf()
{
printf("111111\n");
}
extern int zxcv();
int pou()
{
zxcv();
}
./a.out
111111
2222222