30-05-2006, 08:36 AM
I would like to know how to represent a Violation of rule 12.12.
It is stated in C90 that bitwise operands are required to of integer type. Therefore bitwise operators can't be used with floats to demonstrate this rule as this would be a direct violation of rule 1.1.
Is maybe pointer indirection using an unsigned char the answer?
or are there implementations that allow bitwise operators to be used with floats?
Thanks for your help!
It is stated in C90 that bitwise operands are required to of integer type. Therefore bitwise operators can't be used with floats to demonstrate this rule as this would be a direct violation of rule 1.1.
Is maybe pointer indirection using an unsigned char the answer?
or are there implementations that allow bitwise operators to be used with floats?
Thanks for your help!
<t></t>