Code:#define TO_UPPER(x) ( IS_LOWER_CASE (x) ? (x) - 'a' + 'A' : (x) )
the above code converts lowercase to uppercase.
I don't quite understand "( IS_LOWER_CASE (x) ? (x) - 'a' + 'A' : (x) )"
The thing in the parenthesis, I think, is saying if x is lower case, then do (x)-'a'+'A'x).
But I don't understand how "(x)-'a'+'A'x)" converts lower case letters to uppercase letters.