问答详情
源自:5-13 内部函数与外部函数

printLine() 与say();

#include <stdio.h>
#include "test.c"   //引用test.c文件
extern void printLine()     //这里定义的方法对吗?
{
   printf("**************\n");  
}
int main()
{
    say();
    return 0;
}



请问里面调用的printLine()    函数是另一个文件里有的一个函数,然后为什么主函数里面调用的是 say() 函数  请问有什么联系吗

提问者:linzhihao 2015-04-18 01:03

个回答

  • 康振宁
    2015-04-20 14:47:42
    已采纳

    这节是练习内部和外部函数的,你看一下左侧的知识点讲解