一道与预处理有关的题目

在看雪看到了刘涛涛出的一道题:http://bbs.pediy.com/showthread.php?t=130889

过去曾经做过类似的,这里再给个解释的资料:

The # operator has a similar difficulty, by the way. If #x appears in a replacement list, where x is a macro parameter, the corresponding argument is not expanded. Thus, if N is a macro representing 10, and STR(x) has the replacement list #x, expanding STR(N) yields "N", not "10".

这样你就知道TEXT Macro为什么要这样#define了。

你可能感兴趣的:(C/C++,list)