首页 > 计算机类 > 等级考试 > 计算机二级 > C++语言程序设计 > 设有以下函数: void fun(int n,char *s){......} 则下面对函数指针的定义和赋值均正确的是

设有以下函数: void fun(int n,char *s){......} 则下面对函数指针的定义和赋值均正确的是

A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
查看答案
正确答案: D
答案分析:
包含此试题的试卷:
相关的试题
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
A.void *pf(); pf=fun;
B.void (*pf )(int, char );pf=&fun;
C.void *pf(); *pf=fun ;
D.void (*pf)(int ,char *) ; pf=fun;
网站内容收集于网络,如有侵犯您的权益,请联系:gl@lm158.com,感谢您的支持
神奇助手题库网