Write a C program for Macro Processor. Here’s a Simple Program implementation of Macro processor in C Programming Language.
We know that Macro is a single line abbreviation for a group of statements. We should define that sentence – cluster before using them in actual program.
Macro processor will analyse the program and on encountering macro variable, it will replace that ‘Macro invocation’ to corresponding Macro definition.
It should also take care the number and position of arguments used in Macro invocation.
ALGORITHM:
Below is the source code for C program for Macro Processor which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
OUTPUT : :
need an explanation for this answer? contact us directly to get an explanation for this answer