现有如下程序段 #include"stdio.h" intfun(intk,in
2024-06-19 27次 计算机二级 反馈错误 加入收藏 正确率 : 100%
题目内容:
[单选题]现有如下程序段
#include "stdio.h"
int fun(int k,int *m)
{if(k%3)*m=k*k;
else *m=k/3;}
main()
{ int (*p)(int,int *),m;
p=fun;
(*p)(78, &m);
printf( "%d\n",m);}
则程序段的输出结果为
A.24
B.25
C.26
D.27
本题链接: