adplus-dvertising
frame-decoration

Question

What is the output of C program with macros?
#define ERRMSG printf("Some error.");
int main()
{
    printf("JAR.");
    ERRMSG;
    return 0;
}

a.

JAR.

b.

JAR.ERRMSG

c.

JAR.Some error.

d.

Compiler error

Answer: (c).JAR.Some error.

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?