fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i=0, a, b, c;
  6. a = ++i = (b=++i) + (c=++i);
  7. cout<<"a = "<<a<<endl;
  8. cout<<"b = "<<b<<endl;
  9. cout<<"c = "<<c<<endl;
  10. cout<<"i = "<<i<<endl;
  11. }
  12.  
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
a = 5
b = 2
c = 3
i = 5