Would you like signs with those chars?
Would you like signs with those chars?
Posted Oct 24, 2022 21:31 UTC (Mon) by lisch (subscriber, #36574)Parent article: Would you like signs with those chars?
Thus, x86 developers can get into the habit of thinking of char as always being signed and, as a result, write code that will misbehave on some other systems.In my experience, x86 developers are more likely to unwittingly think of
char as unsigned. For example,
char c = '\xfc';
int array[256] = { ... };
do_something(array[c]); // BOOM!
