adplus-dvertising
frame-decoration

Question

What is the output of C program?
#define TANK(a) a*10+2
int main()
{
    int a = TANK(2)*2;
    printf("%d",a);
    return 0;
}

a.

44

b.

22

c.

24

d.

Compiler error

Posted under C Programming

Answer: (c).24

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of C program?