text: Left Shift and Right Shift Operators in C / C ++ |
code: #include <stdio.h> NEW_LINE int main ( ) { int i = 3 ; printf ( " pow ( 2 , ▁ % d ) ▁ = ▁ % d STRNEWLINE " , i , 1 << i ) ; i = 4 ; printf ( " pow ( 2 , ▁ % d ) ▁ = ▁ % d STRNEWLINE " , i , 1 << i ) ; return 0 ; }