Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 C++ standard requires only the digit characters
 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:

...