fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. union long_float {
  5. long l;
  6. float f;
  7. };
  8.  
  9. int main() {
  10. long_float lf;
  11. lf.f=2.589594838;
  12.  
  13. cout << "lf.l: " << lf.l << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
lf.l: 1076214764