What will be the output of the following C++ code?
#include <iostream> using namespace std; int main() { int a = 0; int b = 10; a = 2; b = 7; if (a && b) { cout << "true: " << endl; } else { cout << "false: " << endl; } return 0; }
true
false
error
10
This question is part of this quiz :
C++ Operators