fork download
  1. #include <iostream>
  2. #include <arpa/inet.h>
  3.  
  4. int main() {
  5. uint32_t network_order = 1631719168;
  6. uint32_t host_order = ntohl(network_order);
  7. std::cout << "Host order: " << host_order << std::endl;
  8. return 0;
  9. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Host order: 1000033