有以下程序:void f(int n,int * r){int r1=0;if(
2024-07-28 192次 计算机二级 反馈错误 加入收藏 正确率 : 100%
题目内容:
[单选题]有以下程序: void f(int n,int * r) {int r1=0; if(n%3==0)r1=n/3; else if(n%5==0)r1=n/5; else f(--n,&r1); *r=r1;} main() {intm=7,r; f(m,&r);printf("%d/n",r);} 程序运行后的输出结果是______。
A.2
B.1
C.3
D.0
本题链接: