What is Preprocessor?
The preprocessor is used to modify your program according to the preprocessor directives in your source code. Preprocessor directives (such as #define) give the preprocessor specific instructions on how to modify your source code. The preprocessor reads in all of your include files and the source code you are compiling and creates a preprocessed version of your source code. This preprocessed version has all of its macros and constant symbols replaced by their corresponding code and value assignments. If your source code contains any conditional preprocessor directives (such as #if), the preprocessor evaluates the condition and modifies your source code accordingly. The preprocessor contains many features that are powerful to use, such as creating macros, performing conditional compilation, inserting predefined environment variables into your code, and turning compiler features on and off. For the professional programmer, in-depth knowledge of the features of the preprocessor can be one of the keys to creating fast, efficient programs.
Showing Answers 1 - 1 of 1 Answers
- What do you mean by preprocessor directory
- What is the preprocesser and why it need?What are the types in preprocessor?
- What is preprocessor in .Net and type , where it use
- Which preprocessor directive are used to mark that contain block of code is to be treated as a single block
- List of words of preprocessor in .Net?
- How do I do implement a trace and assert?
- How do you override a defined macro?
- What is #line used for?
- What is a pragma?
- How can type-insensitive macros be created?
- Preprocessor directives
- How can you check to see whether a symbol is defined?
- Can you define which header file to include at compile time?
- How can you avoid including a header more than once?
- What will the preprocessor do for a program?