Re: Direct computation of integer limits in K&R2?
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Fri, 14 Mar 2008 14:15:14 -0500
Ioannis Vranos wrote:
.... snip ...
OK it is allowed, but is there any existing system where the value
ranges of signed int and unsigned int are different?
Yes. Consider a 16 bit system. INT_MAX is 32767. INT_MIN is
-32768 (or -32767). UINT_MAX is 65536 (UINT_MIN is naturally 0).
It is allowable to reserve the value that would represent -32768 to
indicate a special condition, such as uninitialized. Or, for a 1's
complement machine, the bit pattern for -0 is forbidden.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: Direct computation of integer limits in K&R2?
- From: Joe Wright
- Re: Direct computation of integer limits in K&R2?
- From: Keith Thompson
- Re: Direct computation of integer limits in K&R2?
- References:
- Direct computation of integer limits in K&R2?
- From: santosh
- Re: Direct computation of integer limits in K&R2?
- From: Ioannis Vranos
- Re: Direct computation of integer limits in K&R2?
- From: ymuntyan
- Re: Direct computation of integer limits in K&R2?
- From: Ioannis Vranos
- Re: Direct computation of integer limits in K&R2?
- From: Micah Cowan
- Re: Direct computation of integer limits in K&R2?
- From: Ioannis Vranos
- Direct computation of integer limits in K&R2?
- Prev by Date: Re: Declared global variable isn't being seen by main. - TPA
- Next by Date: Re: Declared global variable isn't being seen by main. - TPA
- Previous by thread: Re: Direct computation of integer limits in K&R2?
- Next by thread: Re: Direct computation of integer limits in K&R2?
- Index(es):
Relevant Pages
|