Parameterized Macros
#define PRINT3(e1,e2,e3) \
printf("\n%c\t%c\t%d", \
(e1), (e2), (e3) )
After this definition, the preprocessor replaces every occurrence of the form
PRINT3(a,b,c)
by the replacement text
printf("\n%c\t%c\t%d",
(a), (b), (c) )
Previous slide
Next slide
Back to first slide
View graphic version