Why can a function pointer be called without deferencing it?

前端 未结 0 1964
名媛妹妹
名媛妹妹 2020-12-16 06:50

If I have the following code example,

...

typedef void (*printer_t)(int);

int main()
{
    printer_t p = &print_int;
    p(5);
    return 0;
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题