unsigned int type integer shifts bits
#include <iostream>
using namespace std;
int main(void) {
unsigned int value, one = 1;
value = one << 1;
cout << "Value: " << value << '\n';
cout << "Result: " << (one << 1) << '\n';
}
Related examples in the same category