What will the following program display? #include <iostream>
using namespace std;
int main()
{
int a = 0, b = 2, x = 4, y = 0;
cout << (a == b) << " ";
cout << (a != b) << " ";
cout << (b <=x) << " ";
cout << (y > a) << endl;
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:
Verified
Q23: What is the value of the following
Q24: Given the following code segment, what is
Q25: Which statement allows you to properly check
Q26: In C++ the = operator indicates:
A)equality
B)assignment
C)subtraction
D)negation
E)None of
Q28: What is the value of the following
Q30: What will the following segment of
Q31: What is the value of the following
Q32: This operator performs a logical NOT operation.
A)--
B)!
C)<>
D)><
E)None
Q34: The _ of a variable is limited
Q37: The default section of a switch statement
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents