The return value is going to stay in a register the whole time anyway, so a char won't save you anything.
But regardless, the point of that sentence is nothing to do with memory usage, but with semantics. Whether you or the compiler packs all the information into 3 bits or 3 words, that's fine, as long as the language helps you distinguish the parts.
Comments
The return value is going to stay in a register the whole time anyway, so a char won't save you anything.
But regardless, the point of that sentence is nothing to do with memory usage, but with semantics. Whether you or the compiler packs all the information into 3 bits or 3 words, that's fine, as long as the language helps you distinguish the parts.