fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int d;
  6.  
  7. d = 5;
  8. d = ++d + --d;
  9. printf("\nd=%d", d); //10
  10.  
  11. d = 5;
  12. d = --d + ++d;
  13. printf("\nd=%d", d); //10
  14.  
  15. d = 5;
  16. d = d++ + d--;
  17. printf("\nd=%d", d); //10
  18.  
  19. d = 5;
  20. d = d-- + d++;
  21. printf("\nd=%d", d); //10
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
d=11
d=9
d=11
d=9