Eight-Bit Integer Confusion
WHAT IS THIS TYPE? std::uint8_t IT'S AN EIGHT-BIT UNSIGNED INTEGER YOU'RE SURE THIS ISN'T A CHAR IN DISGUISE? YEP std::uint8_t u = 0x45; LOOKS JUST FINE. IT'S AN INTEGER std::cout << u; E
A blue-gloved character presents C++ code declaring a std::uint8_t variable, while Patrick questions whether it is actually a char. The punchline is that the value is printed as the letter E, highlighting the confusing overlap between an eight-bit integer and a character representation.
- @dev_meme / 4359 2022-05-05
- Type
- image
- Size
- 500×596 · 90.3 KiB
- Mood
- absurd, nerdy
- Language
- en
- Added