#define power(a) #a
int main()
{
printf("%d",*power(432));
return 0;
}
誰かがo / pを説明できますか??
o/p は
52
これは以下と同等です:
printf("%d",*"432");
これは次と同等です:
printf("%d", '4');
の ASCII 値は'4'
です52
。
#define power(a) #a //# is a stringization operation in macro
int main()
{
printf("%d",*power(432));
return 0;
}
Hence after calling power(432), macro will return it "432" and applying * on it gives first value which is nothing but 52 (48 + 4) for '4' .