3 ms·
When can a char be 16 bits? I presume it'd still have a sizeof() of 1 though.
by flingo 8y ago
When can a char be 16 bits?
I presume it'd still have a sizeof() of 1 though.
- toolslive 8y agoTexas Instruments C54x DSPs It can even be funkier, like 12 bits in a char https://stackoverflow.com/questions/2098149/what-platforms-have-something-other-than-8-bit-char https://stackoverflow.com/questions/2098149/what-platforms-h... It's a mess
- WalterBright 8y agoI've seen 32 bit chars on some DSP C implementations.
- jibal 8y ago"When can a char be 16 bits?" Whenever an implementation says so. There are now few machines where the addressable unit is not 8 bits though, which is why languages like D and Java can get away with not supporting them. > I presume it'd still have a sizeof() of 1 though. The language standard requires that.