- #include <stdio.h>
- #include <stdlib.h>
- void main(void)
- {
- unsigned value = 1;
- printf("%u rotated right once is %un", value,
- _rotr(value, 1));
- value = 5;
- printf("%u rotated right twice is %un", value,
- _rotr(value, 2));
- value = 65534;
- printf("%u rotated left twice is %un", value,
- _rotl(value, 2));
- }