Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c function pointer in argument

void f(void (*a)()) {
    a();
}

void test() {
    printf("hello world
");
}

int main() {
     f(&test);
     return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #function #pointer #argument
ADD COMMENT
Topic
Name
9+8 =