3 ms·
First mistakes I found are on page 4. "the compiler "promotes" the smaller type to be the same size as the larger type before combining the values." Values sma
by nwellnhof 9y ago
First mistakes I found are on page 4.
"the compiler "promotes" the smaller type to be the same size as the larger type before combining the values." Values smaller than int are always promoted to int.
"Promotions do not lose information -- they always convert from a type to compatible, larger type to avoid losing information." This isn't true when a signed type is promoted to unsigned.
It seems that the author didn't read the C language specification.