The output of the following program is: #define f(g,g2) g##g2 void main() { int var12=100; printf("%d", f(var,12)); } A. 100 B. 10012 C. Runtime error D. Syntax error Answer Workspace Report Discuss Answer with explanation Answer: Option B Explanation ## is token pasting operator which simply combines all the parameters of the macro into one variable. So, in f(var, 12), var and 12 combine to form var12 and replaces the f(var, 12) and hence the output is 100. Workspace
Discuss about the question