函数指针

指向函数的指针

void func(int a, int b) {  }
int main() {
    void(*p2)(int,int) = func;
    p2(1,2);
    return 0;
}

函数名就是函数的入口地址

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top