Preprocessor Introduction In C

The C preprocessor is a tool which filters the source code before it is compailed. The preprocessor allows constants to be named using the £define notation. The preprocessor provides several other facilities which will be described in this chapter. The preprocessing work in a program execution is shown in figure

img

It is important to remember that the preprocessor is not working to the same rules as the rest of C program. It works on a line-by-line basis. The preprocessor does not know about the scope rules of C. Preprocessor directives like #define take effect as soon as they are seen and remain in effect until the end of the file that contains them. This is one of the reasons why it is a good idea to make sparing use of these directives.



About the Author



Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc





 PreviousNext