adplus-dvertising
frame-decoration

Question

What is the output of C program?
#define LOGIC(a,b) (a==b)
int main()
{
    if(LOGIC(5,5))
    {
        printf("SAME ");
    }
    return 0;
}

a.

SAME

b.

LOGIC(5,5)

c.

5==5

d.

Compiler error

Answer: (a).SAME

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?