fork download
  1. #include <cstdio>
  2. using namespace std;
  3.  
  4. int main() {
  5. float x = 3.14159;
  6. long i = x;
  7. long j = *(long*)&x;
  8. printf("%x\n", i);
  9. printf("%x\n", j);
  10. // your code goes here
  11. return 0;
  12. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
3
40490fd0