modernc.org/cc@v1.0.1/testdata/tcc-0.9.26/tests/tests2/42_function_pointer.c (about)

     1  #include <stdio.h>
     2  
     3  int fred(int p)
     4  {
     5     printf("yo %d\n", p);
     6     return 42;
     7  }
     8  
     9  int (*f)(int) = &fred;
    10  
    11  int main()
    12  {
    13     printf("%d\n", (*f)(24));
    14  
    15     return 0;
    16  }
    17  
    18  /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/