adplus-dvertising
frame-decoration

Question

Predict the output of the program ?
#include<stdio.h>
int main()
{
    if(printf("ABC"))
        printf("True");
    else
        printf("False");
    return 0;
}

a.

ABC

b.

ABCFalse

c.

True

d.

ABCTrue

Posted under C Programming

Answer: (d).ABCTrue

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Predict the output of the program ?