What is the output of the following code snippet?
int main() { char one = 10; char two = 20;
cout << "The value of the expression one < two is: "
<< (one < two)
<< endl
<< "The value of the expression one == two is: "
<< (one == two) <<endl;
return 0; }
Options
- The value of the expression first < second is: 0 The value of the expression first == second is: 1
- The value of the expression first < second is: 10 The value of the expression first == second is: 20
- The value of the expression first < second is: 1 The value of the expression first == second is: 0
- The value of the expression first < second is: 20 The value of the expression first == second is: 0
CORRECT ANSWER : The value of the expression first < second is: 1 The value of the expression first == second is: 0
Write your comments