Thank you very much..........now i got it.............

On Sat, Aug 20, 2011 at 11:51 AM, Ayswarya Srinivasan <[email protected]
> wrote:

> i guess the output is fff0
>
> -1 = 0000 0000 0000 0001
>       taking 1's complement
>        1111 1111 1111 1110
>      taking 2's complement
>       1111 1111 1111 1111
> -1<<4
> left shifting 4 bits
>       1111 1111 1111 0000
>
> %x prints in hexa decimal format
> so o/p- f f f 0
>
>
> On Sat, Aug 20, 2011 at 11:39 AM, Vijay Khandar 
> <[email protected]>wrote:
>
>> main()
>> {
>> printf("\n %x",-1<<4);
>> }
>>
>> o/p-ffff
>>
>> Plz tell me anyone how this program is working? what is the meaning of
>> -1<<4, 45>>6,-6<<65 etc.. how this statement is executed..........?
>>
>> Vijay............
>>
>> --
>> 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.
>>
>>
>
>
> --
> Regards,
> Ayswarya S
>
>  --
> 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.
>

-- 
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