fork download
  1. #include <cstdint>
  2. #include <iostream>
  3.  
  4. int main() {
  5. float a = 3.5;
  6. float * b = &a;
  7. int32_t * c = (int32_t*) b;
  8. int32_t d = *c; // tu jest float przerobiony na int32_t
  9. std::cout << d << std::endl;
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
1080033280