@Raman. Signed integers are represented in twos-complement form. -1 is
all 1-bits.

Unsigned integers are all positive, so you can't represent -1 as an
unsigned integer.

Dave

On Aug 11, 5:13 am, Raman <raman.u...@gmail.com> wrote:
> How is -1 represented in signed and unsigned int form??
>
> Is it right, -1 as "all ones" in unsigned form
> and 1000...00001 " in signed form

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to