What is the preprocesser and why it need?What are the types in preprocessor?

Showing Answers 1 - 1 of 1 Answers

The C preprocessor implements the macro language used to transform C, C++, and Objective-C programs before they are compiled.

Preprocessing is the first stage of program compillation where all MACROS are replaced in the source code.All the directives or commands that begin with # will be taken care by preprocessor.

The preprocessor more or less provides its own language which can be a very powerful tool to the programmer.This can be useful if you wish to hide a keyword such as const from an older compiler that does not understand it.

1. Programs easier to develop

2. Easier to read

3. Easier to modify

4. Machine independent or easily transportable code between various machine architectures

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions