Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- unsigned int x = 0xf0001111;
- int y = 0xf0001111;
- printf("%08x \n", x);
- printf("shifting as unsigned value: %08x \n", x >> 4);
- //int y = 0xf0001111;
- printf("shifting as SIGNED value: %08x \n", y >> 4);
- return 0;
- }
- /*
- f0001111
- 0f000111
- ff000111
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement