The C preprocessor is a macro preprocessor (enables you to characterize macros) that changes your program before it is compiled. These changes can be the consideration of header record, macro expansions and so on. All preprocessing directives start with a # symbol.
1) Macros are the identifiers that speak to proclamations or articulations as it were macros are a section of code which is been given a name.
2) #define directive is utilized to characterize macro.
3) Example, we have characterized a macro i.e SQUARE(x) x*x.
4) Here the macro decides the square of the given number.
5) Macro Declaration: #define name content.
Example : #define preprocessor
#include <stdio.h>
#define PI 3.1415
int main()
{
float radius, area;
printf(“Enter the radius: “);
scanf(“%d”, &radius);
area = PI*radius*radius;
printf(“Area=%.2f”,area);
return 0;
}
You can likewise characterize macros that work like a function call, known as function like macros. For instance, #define circleArea(r) (3.1415*(r)*(r))