fork(6) download
  1. #define _CRT_SECURE_NO_WARNINGS
  2.  
  3. #include <iostream>
  4. #include <sstream>
  5. #include <limits>
  6. #include <string>
  7. #include <memory>
  8. #include <vector>
  9.  
  10. using namespace std;
  11.  
  12. int main()
  13. {
  14. unsigned long long ull = numeric_limits<unsigned long long>::max();
  15. long double d = static_cast<long double>(ull);
  16. unsigned long long ull2 = static_cast<unsigned long long>(d);
  17. cout << ull << endl << d << endl << ull2;
  18. return 0;
  19. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
18446744073709551615
1.84467e+19
18446744073709551615