fork download
  1. #include <stdio.h>
  2.  
  3. inline void foo() { printf("foo\n"); }
  4.  
  5. int main(void) {
  6. void (*f)() = &foo;
  7. f();
  8. // your code goes here
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/2DQSvq/ccUn15Wx.o: In function `main':
prog.c:(.text+0x14): undefined reference to `foo'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty