Sujet : Re: What is your opinion about unsigned int u = -2 ?
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 09. Aug 2024, 19:10:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v95m1s$9hos$2@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
Am 02.08.2024 um 20:48 schrieb Keith Thompson:
Incidentally, what the standard says is that unsigned operations do not
overflow at all. It could equivalently have said that they do overflow
and the behavior of overflow is well defined.
No, it says that signed operation don't overflow.
Unsigned operations have a specified wrap-around.