宏定义替换转义字符’\n’ 将’\n’宏定义为字符,再进行字符输出。 #include <stdio.h> #define NL '\n' int main() { printf("Line1%c",NL);