T
Tagore
Please consider program given below;
#include<stdio.h>
#define f(a,b) a##b
#define g(a) #a
#define h(a) g(a)
int main(void)
{
printf("%s\n",h(f(1,2)));
printf("%s\n",g(f(1,2)));
return 0;
}
above program gives following output :
12
f(1,2)
I expected both printf to give same output but why is it showing
different outputs?
#include<stdio.h>
#define f(a,b) a##b
#define g(a) #a
#define h(a) g(a)
int main(void)
{
printf("%s\n",h(f(1,2)));
printf("%s\n",g(f(1,2)));
return 0;
}
above program gives following output :
12
f(1,2)
I expected both printf to give same output but why is it showing
different outputs?