Macro Substitution in C Programming

The form of Macro substitution is:
#define name replacement-text

Any name except the one within quoted strings in the program will be replaced with replacement-text. And the replacement-text could almost be anything.

The output is:         AUTHOR_NAME : Anthony Zhan

The result will be:

The #expr will replace to “expr”, within expr, each is replaced by \” and each \ by \\ etc.

## concatenate arguments, so paste(x,y) is expanded into:

Leave a Reply

Your email address will not be published. Required fields are marked *