this is bec -1 in hexadecimal is ffffffff
On Fri, Jul 29, 2011 at 11:37 PM, Ankur Khurana <[email protected]>wrote:
> Please explain the output, that why is it in that form in hexadecimal form
>
>
> #include<stdio.h>
>
> int main()
> {
> printf("%d %x",-1<<1,-1<<1);
> return 0;
> }
>
>
> output :
>
> -2 fffffffe
>
>
> --
> 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.
>
--
Aditi Garg
Undergraduate Student
Electronics & Communication Divison
NETAJI SUBHAS INSTITUTE OF TECHNOLOGY
Sector 3, Dwarka
New Delhi
--
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.