#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#define Conn(x,y) x##y
#define ToString(x) #x
int main(void)
{
int ARR[4] = {192,168,2,34};
int ARR9 = 99;
printf("%s\r\n",ToString(ARR[0]));//打印:ARR[0]
//printf("%s",Conn(ARR,ARR) );//error: 'ARRARR' was not declared in this scope
//printf("%d",Conn(ARR,[0]) );//error: pasting "ARR" and "[" does not give a valid preprocessing
printf("%d\r\n",Conn(ARR,9) );//99
//printf("%s\r\n",Conn("ARR","9") );//error: pasting ""ARR"" and ""9"" does not give a valid preprocessing
return(0);
}
是一种反向的感觉
反弹琵琶
+++++++++++++++++++++++补充+++++++++++++++
http://blog.chinaunix.net/uid-26189153-id-2380621.html