-->
当前位置:首页 > 题库

PROGRAMMING:Pointer to function

Luz5年前 (2021-05-10)题库505
Analyze the following code to understand the pointer to the function
```
#include
int max(int a,int b){
if(a>b) return a;
else return b;
}
int main(){
int(*pf)();
int x=5,y=8,z;
pf=max;
z=(*pf)(x,y);
printf("max=%d",z);
return 0;
}
Execute program, output:
max=8
```
###Input example:
```in
```
###Output example:
```out
max=8
```







answer:If there is no answer, please comment