fork download
  1. #include <stdio.h>
  2. int f(int a)
  3. {
  4. a>20?return(10):return(20);
  5. }
  6. int main()
  7. {
  8. int f(int);
  9. int b;
  10. b=f(20);
  11. printf("%d\n",b);
  12. return 0;
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘f’:
prog.c:4:7: error: expected expression before ‘return’
  a>20?return(10):return(20);
       ^~~~~~
prog.c:5:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
stdout
Standard output is empty