unsigned int type integer shifts bits : unsigned « Data Type « C++






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

1.Read unsigned int and output it