Where's the language spec? The reference is nice but it's not a formal specification.
So much undefined behavior - more than C! /s
Edited to reflect sarcasm as rustaceans apparently can't infer it.
So much undefined behavior - more than C! /s
Edited to reflect sarcasm as rustaceans apparently can't infer it.
See also this recent blog post:
edit: clarity
This is not quite accurate; there is no upper limit to the number of bits in a char (except for INTMAX_MAX, perhaps), but it cannot have any fewer than 8 bits, including a possible sign bit.
For 'char', it must at least support the range 0 to 127 (and in addition, it must have the same range as either 'unsigned char' or 'signed char').