fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int i = 1;
  5. printf("%d\n", i++); /* i++ adds 1 after using the value */
  6. printf("%d\n", ++i); /* ++i adds one before */
  7. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
1
3