home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] Double checking re: twos complement & signed types ??

  • Subject: Re: [OCLUG-Tech] Double checking re: twos complement & signed types ??
  • From: Bart Trojanowski <bart-oclug [ at ] jukie [ dot ] net>
  • Date: Fri, 21 Sep 2007 10:24:02 -0400
to nit pick...

* Stephen Gregory <oclug [ at ] kernelpanic [ dot ] ca> [070921 10:06]:
> unsinged 8bit int a = 15 will be stored as 1111 binary (0xf hex).

00001111 (0x0F)

> singed 8bit int b = -1 will be stored as 1111 binary.

11111111 (0xFF)

-Bart

-- 
				WebSig: http://www.jukie.net/~bart/sig/