fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. int a = 12;
  7. int b = 5;
  8.  
  9. int res;
  10.  
  11. res = b >> 0;
  12. printf("- >>1 - %d\n",res);
  13. res = b >> 1;
  14. printf("- >>2 - %d\n",res);
  15. res = b >> 0;
  16. printf("- / - %d\n",b/2);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
- >>1 - 5
- >>2 - 2
- / - 2