A-A+

下面程序的运行结果是 #include<stdio.h> main() {int a=28

2022-08-05 21:28:13 问答库 阅读 172 次

问题详情

下面程序的运行结果是 #include<stdio.h> main() {int a=28,b; char s[10],*p; p=s; do{b=a%16; if(b<10) *p=b+48; else*p=b+55; p++;a=a/5;}while(a>0); *p="";puts(s);}
A.10
B.C2
C.C51
D.请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:C

考点:程序