内部与外部函数

内部函数仅能于定义文件内使用,外部函数则可由其他文件调用。内部函数使用 static 定义,如 static float fac( int n) { ... },外部函数为默认形式,使用 extern 定义,调用时在文件中声明 extern

ppt 文件大小:8.66MB