Help! About Type Conversions
The following statement is from C Primer Plus 5th Edition.
Does it mean that even in an expression like this
The char and short types are promoted to type int or, if necessary, to unsigned int whenever they appear in expressions or as function arguments.
a and b is also converted to type int first, then they sum together, and finally the sum is converted to type char and assigned to c?
c = a + b // suppose a, b and c are variables of type char
But I also find something on the web like this
which means that a and b do not need to be converted to type int.
When two or more operands of different types appear in an expression.
Which one is right?