Preprocessor works on the command given to it in source code
file. It transforms source code before it is passed to the compiler. The commands for preprocessor are called preprocessor directive.
Preprocessor Directive can be given using inclusion macro and file
inclusion using #define and #include.
Example:
Preprocessor directives begin with # symbol.
#include<stdio.h>
#include “myfile.h”
#define MAX 10
Macro: We can define a macro using #define.
No comments:
Post a Comment