fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x = 0;
  6. int y = 0;
  7.  
  8. if(x++ && y++)
  9. {
  10. y+=2;
  11. }
  12.  
  13. std::cout << y;
  14. std::cout << x;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
01