fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=10;
  5. void f();
  6. a=f();
  7. printf("%d\n",a);
  8. return 0;
  9. }
  10. void f()
  11. {
  12. printf("Hi");
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:3: error: void value not ignored as it ought to be
  a=f();
   ^
stdout
Standard output is empty