Why the output is 100?

#define f(g,g2) g##g2
int main()
{
int var12=100;
printf("%d",f(var,12));
return(0);
}

>Why the output is 100?
var + 12 = var12. printf("%d", var12) prints the value of var12, and var12 was initialized to 100.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.