Are chars automatically promoted in C expressions?
问题 I made a statement to a colleague of mine, which was: "chars are automatically promoted to integers in C expressions, and that's fine for performance since CPUs work fastest with their natural word size. I believe char promotion behavior is stated somewhere in the standard due to a char's rank. This is the response I got back: "Characters are not default promoted to an integer. The register size is 32 bit, but multiple byte values in a row can be packed into a single register as a compiler