函数声明时 要不要 加 extern_函数声明需要extern吗-CSDN博客文章浏览阅读4.8k次,点赞7次,收藏22次。待补充。。。1、通常做法–在.c中定义,在.h中extern出来,那么其他编译单元include这个.h文件就可以使用这个变量。2、函数如果定义在本.c文件中,或者定义在一个.h文件中并且本.c文件#i...... admin2023-11-13