Subtlety in conversion of characters to integers
问题 Can someone explain clearly what these lines from K&R actually mean: " When a char is converted to an int, can it ever produce a negative integer? The answer varies from machine to machine. The definition of C guarantees that any character in the machine's standard printing character set will never be negative , but arbitrary bit patterns stored in character variables may appear to be negative on some machines,yet positive on others". 回答1: You need to understand several things first. If I