Bitwise operations: Difference between revisions
→{{header|C++}}: I just noticed that the task demands rotations as well
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:
unsigned int c = a;
std::cout << "c sra b: " << (c >> b) << '\n'; // logical right shift (guaranteed)
// there are no rotation operators in C++
}
</lang>
|