fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. union {
  6. float f;
  7. int i;
  8. } x;
  9. x.f=2147483647;
  10. printf("0x%x\n", x.i);
  11. x.f-=1.0;
  12. printf("0x%x\n", x.i);
  13. return 0;
  14. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
0x4f000000
0x4f000000