9. 指向函数的指针变量如何定义?

glandbl 1年前 已收到1个回答 举报

五品黄山 花朵

共回答了21个问题采纳率:85.7% 举报

例如要定义一个指向函数原型为int max(int a,int b)的指针变量p可以这样:
int max(int a,int b);
int(*p)(int a,int b);
p=max;

1年前

10
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.024 s. - webmaster@yulucn.com