Orchid Win7 v1 <voi### [at] dev null> wrote:
> >> In 2's complement representation MAX_INT+1 has the exact same bits in
> >> both signed and unsigned forms. How do you get outside the array with
> >> that value?
> >
> > That's wrong. In 2's complement representation, MAX_INT+1 has NO bit
> > representation at all. What you get instead if you interpret the
> > respective unsigned representation as signed is MIN_INT.
> Erm... don't you mean -1?
No. int(-1) has the same bit representation as MAX_UINT.
--
- Warp
Post a reply to this message
|