On 12 Apr 2007 07:33:29 -0700, Nico Heinze <[EMAIL PROTECTED]> wrote:
>
> --- In [EMAIL PROTECTED], kathir resh <[EMAIL PROTECTED]> wrote:
> >
> > The range of int is -32767 to +32768 but for long it
> > varies. whenever the input to be used is of big in range
> > (int type) long type is used
> <snip>
>
> Sorry for being so pernickety, but the correct numbers for the usual
> widespread 2's complement representation of 16-bit integers are
> -32,768 to +32,767.
>

You're both wrong.

The Standard does not require 2's compliment to be used, and all a compiler
is required to support is -32767 to +32767 for ints.

</nitpick>

-- 
PJH
Aio, quantitas magna frumentorum est


[Non-text portions of this message have been removed]

Reply via email to