Re: unsigned short addition/subtraction overflow
Richard Heathfield <dontmail@addre ss.co.uk.invali d> wrote in message news:<bsocf3$oo 1$1@sparta.btin ternet.com>...[color=blue]
> Andy wrote:
>[color=green]
> >
> > Can unsigned short be more than 2 bytes long?[/color]
>
> Yes. On a Cray, for example, it might easily be eight bytes long.
>[/color]
Really? From my 1st day at work, I've been taught that
unsigned short is always 2 bytes long while int is variable in length.
You learn something everyday.
Thanks
Andy
Richard Heathfield <dontmail@addre ss.co.uk.invali d> wrote in message news:<bsocf3$oo 1$1@sparta.btin ternet.com>...[color=blue]
> Andy wrote:
>[color=green]
> >
> > Can unsigned short be more than 2 bytes long?[/color]
>
> Yes. On a Cray, for example, it might easily be eight bytes long.
>[/color]
Really? From my 1st day at work, I've been taught that
unsigned short is always 2 bytes long while int is variable in length.
You learn something everyday.
Thanks
Andy
Comment