柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
有以下程序 #include
int fun( char s[]) { int n=0; while(*s <= '9'&&*s >='0') { n=10*n+*s-'0' ; s++; } return (n); } main() { char s[10]={ '6', '1', '*', '4', '*', '9', '*', '0', '*'}; printf("%d\n",fun(s)); } 程序的运行结果是
A.5
B.9
C.61
D.61490
热度🔥1,284
参考答案:C
解析:打开微信小程序查看本题解析
点击打开小程序查看解析
content_copy
扫码免费计算机二级刷题
2024年计算机等级考试题库
推荐
在报表中要添加标签控件,应使用
数据库物理设计的目标是为应用数据提供合适的数据存储结构,同时要保证数据库系统具有良好的性能。关于数据库物理设计,下列说法中错误的是()
若服务器系统可用性达到99.99%,那么系统平均无故障时间(单位:分钟)约为()。
请分析以下程序。 int main() { pid_t pid; pid = fork(); if(pid==0) printf("I am the child process, my process ID is%d\n",getpid()); else printf("I am the parent process, my process ID is%d\n",getpid());} 那么,该程序正确运行后的结果是
标签
二级C语言
fun
循环
10
数组