设有以下函数 void fun(int n,char * s) {……} 则下面对函数指针的定义和赋值均是正确的是 。
A、void (*pf)(int, char *);pf=fun;;
B、viod *pf();pf=fun;;
C、void *pf();*pf=fun;;
D、void (*pf)(int, char); pf=&fun;
发布时间:2025-07-01 17:37:42
A、void (*pf)(int, char *);pf=fun;;
B、viod *pf();pf=fun;;
C、void *pf();*pf=fun;;
D、void (*pf)(int, char); pf=&fun;