Bitwise operations: Difference between revisions
Content added Content deleted
(→{{header|C++}}: I just noticed that the task demands rotations as well) |
(→{{header|C}}: added comment about missing rotations, required by task description) |
||
Line 196: | Line 196: | ||
unsigned int c = a; |
unsigned int c = a; |
||
printf("c >> b: %d\n", c >> b); /* logical right shift */ |
printf("c >> b: %d\n", c >> b); /* logical right shift */ |
||
/* there are no rotation operators in C */ |
|||
return 0; |
return 0; |
||
}</lang> |
}</lang> |