fork(1) download
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4. int i = 1;
  5. int j = ++i;
  6. int k = j++;
  7. cout<<k;
  8.  
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5284KB
stdin


stdout
2