2 ms·
A machine where char is as large as int is unlikely in practice as it isn't very useful. C11 (at least) defines INT_MIN/MAX as covering at least the range of a
by loeg 7y ago
A machine where char is as large as int is unlikely in practice as it isn't very useful. C11 (at least) defines INT_MIN/MAX as covering at least the range of an int16_t type.
That said, the int promotion alone may be surprising / nonobvious to some people (it was to me, when I learned about it!).