fork download
  1. /* C++ Program to demonstrate use of left shift
  2. operator */
  3. #include<stdio.h>
  4. int main()
  5. {
  6.  
  7. int a = 8,b=2;
  8.  
  9.  
  10. printf("left shift is %d",a<<b);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5660KB
stdin
Standard input is empty
stdout
left shift is 32