接续符和转义符实例

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;
}

posted @ 2016-12-08 18:02  王小波私人定制  阅读(192)  评论(0编辑  收藏  举报
DON'T FORGET TO HAVE FUN