Deutsch English Français Italiano |
<v8iqnr$7l3c$1@news.xmission.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail From: gazelle@shell.xmission.com (Kenny McCormack) Newsgroups: comp.lang.c Subject: Re: What is your opinion about unsigned int u = -2 ? Date: Fri, 2 Aug 2024 14:33:31 -0000 (UTC) Organization: The official candy of the new Millennium Message-ID: <v8iqnr$7l3c$1@news.xmission.com> References: <v8dfo9$1k7cg$1@dont-email.me> <pan$d2c8a$8c54ac9f$29a202e0$12c6ce86@invalid.invalid> <87bk2cecan.fsf@bsb.me.uk> <v8inds$2qpqh$1@dont-email.me> Injection-Date: Fri, 2 Aug 2024 14:33:31 -0000 (UTC) Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4"; logging-data="250988"; mail-complaints-to="abuse@xmission.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: gazelle@shell.xmission.com (Kenny McCormack) Bytes: 1382 Lines: 12 In article <v8inds$2qpqh$1@dont-email.me>, Thiago Adams <thiago.adams@gmail.com> wrote: .... >So it seams that anything is ok for unsigned but not for signed. >Maybe because all computer gave same answer for unsigned but this is not >true for signed? I think it is because it wants to (still) support representations other than 2s complement. I think POSIX requires 2s complement, and I expect the C standard to (eventually) follow suit. -- Res ipsa loquitur.