I would like to understand the result of the below code in Microsoft visual studio C/C++ (2012 version). Indeed, when the solution is generated, the result is “1” (True). However, the word “a” is less than the word “z” in ASCII table. So, the result should be “0” (False). Even if I inverse the operation, mean ("z" > "a"). The result is “1”. I tried also this operation ("a" < "z") and ("z" < "a"), the result was “0” for the both Anyone can explain me what’s happening?
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout << ("a" > "z") << endl;
}