In C, semicolons (;) are used to indicate the end of the statement. Why do #include lines not need a semicolon?
;
#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.
#
#define
2.1m questions
2.1m answers
60 comments
57.0k users