Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #400283
| From | cross@spitfire.i.gajendra.net (Dan Cross) |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Representing signed values in corresponding unsigned types |
| Date | 2026-06-29 12:13 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <111tngq$ned$1@reader1.panix.com> (permalink) |
| References | <111qs0g$3hdko$1@dont-email.me> <86zf0e7ox4.fsf@linuxsc.com> <111shlo$3vq40$2@kst.eternal-september.org> |
In article <111shlo$3vq40$2@kst.eternal-september.org>, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote: >Tim Rentsch <tr.17687@z991.linuxsc.com> writes: >> NS <ns@2b.here> writes: >>> Can all the values of a signed int be represented in an unsigned >>> int (or signed long in an unsigned long, etc.)? > >Obviously not. Negative values cannot be represented in unsigned types. >But I don't think that's what NS meant. Agreed. I believe NS's question could be rephrased as, "does the standard guarantee that there is an injection from values of type signed int to values of unsigned int?" - Dan C.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Representing signed values in corresponding unsigned types NS <ns@2b.here> - 2026-06-28 10:11 +0000
Re: Representing signed values in corresponding unsigned types ram@zedat.fu-berlin.de (Stefan Ram) - 2026-06-28 12:07 +0000
Re: Representing signed values in corresponding unsigned types Tim Rentsch <tr.17687@z991.linuxsc.com> - 2026-06-28 06:52 -0700
Re: Representing signed values in corresponding unsigned types Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-06-28 18:27 -0700
Re: Representing signed values in corresponding unsigned types cross@spitfire.i.gajendra.net (Dan Cross) - 2026-06-29 12:13 +0000
Re: Representing signed values in corresponding unsigned types Tim Rentsch <tr.17687@z991.linuxsc.com> - 2026-08-15 02:19 -0700
Re: Representing signed values in corresponding unsigned types Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-08-15 05:48 -0700
Re: Representing signed values in corresponding unsigned types James Kuyper <jameskuyper@alumni.caltech.edu> - 2026-06-28 22:23 -0400
Re: Representing signed values in corresponding unsigned types Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-06-28 20:24 -0700
csiph-web