0 votes 0 votes What will be the output of the following program #define abc(x,y) x*y void main() { int a=1, b=2; printf("%d", abc(a+1, b-2)); } A) 0 B) 1 C) 2 D) 3 Sankaranarayanan P.N asked Sep 28, 2016 Sankaranarayanan P.N 629 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes given macro is resolved in the following way : printf("%d", a+1*b-2); therefore 1+1*2-2 which gives answer = 1 dd answered Sep 28, 2016 • selected Sep 28, 2016 by srestha dd comment Share Follow See all 0 reply Please log in or register to add a comment.