Versions Compared

Key

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

Conversion from integer types such as char, short, int and long to floating types such as float and double in an assignment statement may lead to loss of information if one of the integer types is not converted to a floating type.

Non-Compliant Code Example

...