adplus-dvertising
frame-decoration

Question

What is the output of this program?

#include <stdio.h>
void main()
{
    int a=10;
    if(a=5)
        printf("YES");
    else
        printf("NO");
}

a.

YES

b.

NO

c.

Error

d.

None of the above

Posted under C Programming

Answer: (a).YES

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 this program?