fork download
  1. #include <cstdio>
  2.  
  3. int abc();
  4.  
  5. int main() {
  6. int (*f)() = &abc;
  7. printf("%p", f);
  8. return 0;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/777wKz/cc3mR5T2.o: In function `main':
prog.cpp:(.text.startup+0x12): undefined reference to `abc()'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty