69,369
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#define mkchar(x) #@x
#define mc(x) #x
int main()
{
printf("%c\n",mkchar($));
printf("%c\n",mc($));
getch();
return 0;
}
8: printf("%c\n",mkchar(2));
00401048 push 32h
0040104A push offset string "'f'" (0042201c)
0040104F call printf (004011a0)
00401054 add esp,8
看来是将x变为字符,而非字符串