What is a##b
& #a
?
#define f(a,b) a##b
#define g(a) #a
#define h(a) g(a)
main()
{
printf("%s\n",h(f(1,2))); //how should I interpret this?? [line 1]
printf("%s\n",g(f(1,2))); //and this? [line 2]
}
How does this program work?
The output is
12
f(1, 2)
now I understand how a##b
& #a
work. But why is the result different in the two cases (line 1 and line 2)?