#include<iostream>
using namespace std;
void max(int a, int b)
{
// return a>b ? a: b;
cout<<"hello"<<endl;
}
int main()
{
void (*p)(int x,int y);
p =max;
p(3,4);
// int maxnum =p(3,4);
// cout<<maxnum<<endl;
return 0;
}
C语言调用函数指针
最新推荐文章于 2024-01-18 16:20:23 发布