Left Shift and Right Shift Operators in C / C ++ |
#include <iostream> NEW_LINE using namespace std ; int main ( ) { int i = 3 ; cout << " pow ( 2 , ▁ " << i << " ) ▁ = ▁ " << ( 1 << i ) << endl ; i = 4 ; cout << " pow ( 2 , ▁ " << i << " ) ▁ = ▁ " << ( 1 << i ) << endl ; return 0 ; }