Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relational operators and plain chars and wchar_t
#2
The use of "" is permitted. For example:

Code:
if ( ( x < '0' ) || ( x > '9' ) )
{
   /* Not a digit */
}
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)