为什么#include指令在语句末尾没有分号? [英] why #include directive doesn't have a semi-colon at the end of statement?
本文介绍了为什么#include指令在语句末尾没有分号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在C中,分号(;
)用于表示语句的结尾。为什么 #include
行不需要分号?
In C, semicolons (;
) are used to indicate the end of the statement. Why do #include
lines not need a semicolon?
推荐答案
#include
(以及以<$ c开头的所有其他行$ c>#如 #define
)是 预处理 。这实际上是一个在主编译器之前运行的独立程序,并将 include 文件等内容添加到源代码和宏扩展中。
#include
(and all other lines beginning with #
like #define
) is part of the preprocessor. This is actually a separate programs that runs before the main compiler and does things like include files into the source and macro expansion.
这篇关于为什么#include指令在语句末尾没有分号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文