1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include <stdio.h> #define ZERO "0" #define ONE 1 #define STR1(R) #R #define STR2(R) STR1(R) int main() { printf("%s\n", ZERO); printf("%s\n", STR1(ZERO)); printf("%s\n", STR2(ZERO)); printf("%s\n", STR1(ONE)); printf("%s\n", STR2(ONE)); return 0; } |
输出
1 2 3 4 5 |
0 ZERO "0" ONE 1 |
近期评论