Home > Net >  Does self-defined headers count as preprocessor directives
Does self-defined headers count as preprocessor directives

Time:10-14

All the statements with the symbol # are known as preprocessor directive. My question is does self-defined headers count as preprocessor directive?

# include "example.cpp" // Does it count as preprocessor directive

or is it only the header file defined by programmers allowed to be (called) a preprocessor directive?

CodePudding user response:

All the statements with the symbol # are known as preprocessor directive

# include "example.cpp" // Does it count as preprocessor directive

Yes, it is a preprocessor directive. This line starts with #.

  • Related