fork download
  1. #include <iostream>
  2. #include <netinet/in.h>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. unsigned short int i = ntohl(23456);
  8. cout << "after ntohl = " << i << endl;
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
after ntohl = 0