接续符和转义符实例
1.#include <stdio.h>
#define SWAP(a,b) \
{ \
int temp = a; \
a = b; \
b = temp; \
}
int main()
{
int a = 1;
int b = 2;
SWAP(a,b);
printf("a=%d, b=%d\n", a, b);
return 0;
}
2.#include <stdio.h>
#def\
ine MAX\
255
int main()
{
/\
/这是\
\
注释
i\
n\
t\
*\
p\
= \
NULL;
printf("%0X\n", p);
return 0;
}
/******************************** Stay hungry, Stay foolish. @Rocky ********************************/