Versions Compared

Key

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

...

In this noncompliant example, an a value of type int is converted to a value of type float:

Code Block
bgColor#FFcccc
langc
#include <stdio.h>

int main(void) {
  int big = 1234567890;
  float approx = big;
  printf("%d\n", (big - (int)approx));
  return 0;
}

...