fork(1) download
  1. #include <iostream>
  2. #include <netinet/in.h>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. int i = htonl(32);
  8. cout << i << endl;
  9. i = ntohl(520290304);
  10. cout << i << endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
536870912
799