fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 5;
  6. int b = -13;
  7.  
  8. cout << "A:" << a << "; B:" << b << "\n";
  9.  
  10. //b = a + 0 * (a = b);
  11. b = a + ((a=b) * 0);
  12.  
  13. cout << "A:" << a << "; B:" << b << "\n";
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
A:5;  B:-13
A:-13;  B:-13