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