fork download
  1. #include <iostream>
  2. #include <netinet/in.h>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. auto i = ntohl(0xab000000);
  8. cout << i << endl;
  9.  
  10. i = ntohl(0x97000000);
  11. cout << i << endl;
  12.  
  13. i = ntohl(0x95000000);
  14. cout << i << endl;
  15.  
  16. i = ntohl(0x93000000);
  17. cout << i << endl;
  18.  
  19. i = ntohl(0x8d000000);
  20. cout << i << endl;
  21.  
  22. i = ntohl(0x67000000);
  23. cout << i << endl;
  24.  
  25. i = ntohl(0x000000ab);
  26. cout << i << endl;
  27.  
  28. i = ntohl(0x0000005f);
  29. cout << i << endl;
  30.  
  31. return 0;
  32. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
171
151
149
147
141
103
2868903936
1593835520