Solved

What Will the Following Program Display? #Include ≪iostream>
Using Namespace \quad

Question 39

Multiple Choice

What will the following program display? #include <iostream>
using namespace std;
int main()
{
\quad int a = 0, b = 2, x = 4, y = 0;
\quad cout << (a == b) << " ";
\quad cout << (a != b) << " ";
\quad cout << (b <=x) << " ";
\quad cout << (y > a) << endl;
\quad return 0;
}


A) 0 1 1 0
B) 0 0 1 0
C) 1 1 0 1
D) 1 0 0 1
E) None of these

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions