fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i, j;
  5. for(i = 0, j = 0; i < 10; j = i++) printf("%d ", j);
  6. printf("\n");
  7. for(i = 0, j = 0; i < 10; j = ++i) printf("%d ", j);
  8. printf("\n");
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
0 0 1 2 3 4 5 6 7 8 
0 1 2 3 4 5 6 7 8 9