The following programme produces the following result:#define f(g,g2) g##g2 void main() int var12=100; printf("percentage d," f(var,12));
A. A hundred
B.Error at runtime
C. 10012
D.Incorrect syntax
Answer:C
The following programme produces the following result:#define f(g,g2) g##g2 void main() int var12=100; printf("percentage d," f(var,12));
A. A hundred B.Error at runtime C. 10012 D.Incorrect syntax
Explanation: ## is a token pasting operator that simply combines all of the macro's parameters into a single variable. So, in f(var, 12), var and 12 combine to generate var12, which substitutes the f(var, 12), yielding 100.