fork(5) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. bool someValue = true;
  6. int x = 10, y = 10;
  7.  
  8. someValue ? ++x, ++y : (--x, --y);
  9.  
  10. std::cout << x << " " << y << std::endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
11 11