Re: Compiler problem....unique to C or compiler???



Charlie Gordon wrote:
<vippstar@xxxxxxxxx> a écrit dans le message de news: dd24e31b-aee0-4400-9aa5-03e308905aa9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Nov 19, 12:20 am, rober...@xxxxxxxxxxxxxxxxxx (Walter Roberson)
wrote:
....
*s is a char and *t is a char, and when char are used in arithmetic
expressions, they are widened to int (or, I suppose in theory
it could be unsigned int, if the implementation defaulted to
unsigned char and sizeof(unsigned char) == sizeof(int) ).
Incorrect, please take a look to n1124.pdf 6.3.1.1

Please expand on this, I don't see how the language of 6.3.1.1 leads to this conclusion.

It doesn't, 6.3.1.1 clearly supports the assertion made by Walter Roberson and labeled as "incorrect" by vippstar.

.



Relevant Pages