10-06-2011, 07:26 AM
Yes, but see also C99 Section 6.3.8 paragraph 6 and Section 6.3.9 paragraph 3. These state that the results of relational and equality operators respectively have type int.
The type of the result is independent of the promotions and usual arithmetic conversions that may be performed on the operands of relational and equality operators.
The type of the result is independent of the promotions and usual arithmetic conversions that may be performed on the operands of relational and equality operators.
Posted by and on behalf of the MISRA C Working Group