Bitwise operations: Difference between revisions
Content added Content deleted
m (→{{header|C++}}: oops, forgot lang end tag (you don't see that in section preview ...)) |
(→{{header|C++}}: I just noticed that the task demands rotations as well) |
||
Line 214: | Line 214: | ||
unsigned int c = a; |
unsigned int c = a; |
||
std::cout << "c sra b: " << (c >> b) << '\n'; // logical right shift (guaranteed) |
std::cout << "c sra b: " << (c >> b) << '\n'; // logical right shift (guaranteed) |
||
// there are no rotation operators in C++ |
|||
} |
} |
||
</lang> |
</lang> |