Why does the value range of signed integer variable in C language range from-32768 to 32767? Please explain in detail.
Answer: The value range of signed integer variable is -32768~32767, which is the expression range of int type integer of 16-bit computer in the past, because 16-bit binary can represent 65536-bit decimal data. If it represents unsigned integer, its value range is: 0 to 65535, if it represents signed decimal. Positive numbers range from 0 to 32767, and their binary numbers are: 00000000000000 to 0111111. Negative numbers range from-1 to -32768. Its binary number is:111111165438.