For portable applications, use only the assignment = operator, the equality operators == and !=, and the unary & operator on plain character or plain wide character-typed expressions.
Wiki Markup |
---|
This is recommended because |
the C99 standard requires only the digit characters ('0' - '9') to have consecutive numerical values \[[C99 TC2|http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf]\]. Thus, operations that rely on expected values for plain character or plain wide character-typed expressions can lead to unexpected behavior. |
However, due to the requirement for digit characters, the usage of other operators is allowed for them according to the following restrictions:
...