Posted By:
2 Jul, 2013 1:42 am PDT

Preprocessor directories in C/C++.

What are preprocessor directories?

What is the use of it?

Attachment:None


Lines beginning with the # symbols are the directives for the preprocessor. They are not regular lines with expressions but indications for the compilers preprocessor. The #include directive tells the preprocessor to include the standard file into the program. The #define directive is used to give a meaningful name to a constant. For example:

#define MAX 30.

 

The above statement means that a constant MAX is created whose value is 30.
Was it useful?  




Please login to reply to this problem.