fork download
  1. #include <stdio.h>
  2. #include <iostream>
  3. using namespace std;
  4. int main(void)
  5. {
  6. int x = 1;
  7. printf("%d,%d,%d",x,x++,x); //A statement
  8. //cout<<x<<x++<<x<<endl; //B statement
  9. return 0;
  10. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
2,1,2