79619764

Date: 2025-05-13 13:39:32
Score: 0.5
Natty:
Report link

That's an old thread but here's my take on the topic

inline std::string hex(unsigned char c)
{
    char h[]{"0xFF"};
    sprintf(h, "0x%02X", c);
    return h;
}

std::cout << hex('\r')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Damien LEFEVRE