fork download
  1. #include <stdio.h>
  2.  
  3. typedef int (*MainPtr_t)( void );
  4.  
  5. int main( void )
  6. {
  7. printf( "%p", (void *)main );
  8. return 0;
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘main’:
prog.c:7: error: ISO C forbids conversion of function pointer to object pointer type
stdout
Standard output is empty