fork download
  1.  
  2. #include<stdio.h>
  3. #include<string.h>
  4. void f(int);
  5. void (*foo)(float)=f;
  6. int main()
  7. {
  8.  
  9. foo(10);
  10. return 0;
  11.  
  12. }
  13.  
  14. void f(int i)
  15. {
  16. printf("%d\n",i);
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c:5: error: initialization from incompatible pointer type
stdout
Standard output is empty