#include<stdio.h>

int main()
{
   printf("%x\n", (unsigned)-1>>1);
   return 0;
}

this will give you the expected result.

           Cheers,
            venki

VENKATARAMAN.GB
"If Its Upto Be, It Is Upto Me"


On Mon, Aug 9, 2010 at 3:53 PM, Avik Mitra <[email protected]> wrote:

>
> Note that FFFF (in hex) is 2's complement representation of  -1.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

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

Reply via email to