//main.c#include stdio.hextern void func();extern int m;int n = 200;int main(){func();printf(m = %d, n = %d\n, m, n);getchar();//return 0;}//module.c#include stdio.hint m = 100;void fun...

//main.c #include <stdio.h> extern void func(); extern int m; int n = 200; int main(){ func(); printf("m = %d, n = %d\n", m, n); getchar(); //return 0; }
//module.c #include <stdio.h> int m = 100; void func(){ printf("Multiple file programming!\n"); }
沃梦达教程
本文标题为:C语言:外部函数


基础教程推荐
猜你喜欢
- C语言 structural body结构体详解用法 2022-12-06
- 一文带你了解C++中的字符替换方法 2023-07-20
- C语言基础全局变量与局部变量教程详解 2022-12-31
- 如何C++使用模板特化功能 2023-03-05
- C++使用easyX库实现三星环绕效果流程详解 2023-06-26
- C利用语言实现数据结构之队列 2022-11-22
- C++中的atoi 函数简介 2023-01-05
- 详解c# Emit技术 2023-03-25
- C++详细实现完整图书管理功能 2023-04-04
- C/C++编程中const的使用详解 2023-03-26