What would be the literal translation for the following code. Also, please explain what it meaning and the different ways of using this operator.
int i = 1, j = 2;
cout << ( i > j ? i : j ) << " is greater." << endl;
Any other useful or additional information about the ternary operator that will help me understand it better would be much appreciated.