Jump to content

Bitwise operations: Difference between revisions

→‎{{header|C}}: added comment about missing rotations, required by task description
(→‎{{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:
unsigned int c = a;
printf("c >> b: %d\n", c >> b); /* logical right shift */
/* there are no rotation operators in C */
return 0;
}</lang>
973

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.