MACRO

Macro is a substitution of a string that is placed in a program. It is placed by the definition when program is compiled and we have to use (#) symbol in front of this. We can have different macros like:-

#define, #if, #else.

It is different from preprocessor directive, because pre processor directive is used to link files with the object code and macro is used to define any string and we always or maximum use #define macro.

#include <stdio.h>

#define wait getch ( )

# define flot float

void main ( )

…….

…….

flot f,c;

…….

…….

…….

…….

wait;

}