adplus-dvertising
frame-decoration

Question

What is the output of C program with macros?
#define ERRMSG(a) printf("Error=%d",a);
int main()
{
    ERRMSG(10);
    return 0;
}

a.

ERRMSG(10)

b.

Error=

c.

Error=10

d.

Compiler error

Answer: (c).Error=10

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 with macros?