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.

Reply via email to