adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main()
    {
        int a = 0;
        int b = 10;
        if ( a && b )
        {
            cout << "true"<< endl ;
        }
        else
        {
            cout << "false"<< endl ;
        }
        return 0;
    }

a.

true

b.

false

c.

error

d.

none of the mentioned

Answer: (b).false

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?