fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int a=1, b=2, c=3;
  7. float x=-1.0, y=2.0, z=3.0;
  8. char *s="napis";
  9. float t[10]={0,1,2};
  10.  
  11. printf("\n1) = %d", (a++)+(++b<<2));
  12. system("PAUSE");
  13.  
  14. printf("\n2) = %d", (++a==b)==(c++==c--));
  15. system("PAUSE");
  16.  
  17. printf("\n3) = %f", x+y+z*y);
  18. system("PAUSE");
  19.  
  20. printf("\n4) = %s", s+2);
  21. system("PAUSE");
  22.  
  23. printf("\n5) = %f", t[2]+=t[1]);
  24. system("PAUSE");
  25.  
  26. printf("\n6) = %d", (a+b!=c) || (a!=c));
  27. system("PAUSE");
  28.  
  29. return 0;
  30. }
  31.  
Success #stdin #stdout 0.02s 5312KB
stdin
Standard input is empty
stdout
1) = 13
2) = 1
3) = 7.000000
4) = pis
5) = 3.000000
6) = 1