I have a C program:
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }
when I run only the preprocessor, it expands it as
{ int var12=100; printf("%d",var12); }
due to which the output is 100.
Can someone tell me how / why the preprocessor extends var##12 to var12 ?
c c-preprocessor stringification
Vijay
source share