PROGRAMMING:Pointer to function
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
```
#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