fork download
  1. #include <stdio.h>
  2. volatile int xx = 1, yy = 2;
  3.  
  4. int main(int argc, char **argv)
  5. {
  6. if ((++xx) || (yy++))
  7. {
  8. printf("good\n");
  9. }
  10. else
  11. {
  12. printf("BAD\n");
  13. }
  14. printf("xx = %d, yy= %d\n",xx,yy);
  15. return 0;
  16. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
good
xx = 2, yy= 2