char* ptr = "xyz"; std::cout << std::hex << (int)ptr << '\n';