fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i=-1,j=0,k=1;
  5. int r=++i || j++ && --k;
  6. printf(%d%d%d%d,i,j,k,r);
  7. return 0;
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:5:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  int r=++i || j++ && --k;
                   ^
prog.c:6:9: error: expected expression before '%' token
  printf(%d%d%d%d,i,j,k,r);
         ^
prog.c:5:6: warning: unused variable 'r' [-Wunused-variable]
  int r=++i || j++ && --k;
      ^
stdout
Standard output is empty