fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. float x = 1.0f;
  6. float *f = &x;
  7. int *d = (int*)((void*)&x);
  8. printf("%f %d\n", *f, *d);
  9. *f = *f+65535;
  10. printf("%f %d\n", *f, *d);
  11. *d = *d+65535;
  12. printf("%f %d\n", *f, *d);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5360KB
stdin
Standard input is empty
stdout
1.000000 1065353216
65536.000000 1199570944
66047.992188 1199636479