cout hex c++
// Output 78994311 in hex (4b55b87) // Use std::hex to switch to printing hex // Use std::dec to switch back to printing decimal std::cout << std::hex << 78994311 << std::dec << std::endl;
// Output 78994311 in hex (4b55b87) // Use std::hex to switch to printing hex // Use std::dec to switch back to printing decimal std::cout << std::hex << 78994311 << std::dec << std::endl;