fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. cout << "-5 / 2 = " << (-5 / 2) << endl;
  7. cout << "-5 >> 1 = " << (-5 >> 1) << endl;
  8.  
  9. return 0;
  10. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
-5 / 2  = -2
-5 >> 1 = -3