char *testM(){
return "rose";
}
int main()
{
char *name
= testM();
printf("name = %s\n",name
);
return 0;
}
void test()
{
printf("调用了 test 函数\n");
}
double haha(double d
, char *s
, int a
)
{
}
int main()
{
void (*p
)();
double (*p
)(double, char *, int);
p
= haha
;
double (*p
)(double, char *, int) = haha
;
p
= test
;
p();
(*p
)();
test();
return 0;
}
转载请注明原文地址:https://tech.qufami.com/read-12807.html