Vidyalelo
C++ Programming · Q240

Classes and Objects in C++

Programming · C++ Programming · question 240

Q240

What will be the output of the following C++ code? #include 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
Answer
C.
error
D.
10

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board