下列程序运行后的输出结果是______。 #include<stdio.h> main() { char ch[7]="56bcl2";
下列程序运行后的输出结果是______。
#include<stdio.h>
main()
{ char ch[7]="56bcl2";
int i,s=0;
for(i=0;ch[i]>='0'&&ch[i]<='9';i++)
s=10*s+ch[i]-'0';
printf("s=%d\n",s);
}
下列程序运行后的输出结果是______。
#include<stdio.h>
main()
{ char ch[7]="56bcl2";
int i,s=0;
for(i=0;ch[i]>='0'&&ch[i]<='9';i++)
s=10*s+ch[i]-'0';
printf("s=%d\n",s);
}
第1题
下列程序运行后的输出结果是______。
#include<stdio.h>
{
main()
(char c1='1',c2='5';
printf("%3c\t",c2++);
printf("%d\n",c2-c1);
}
第3题
下列程序运行后的输出的结果是______。 include<stdio.h> main() { char s[20]; scanf("%s",s); printf("%s",s); } 运行程序,输入HOW ARE YOU。
第4题
下列程序运行后的输出结果是______。 include<stdio.h> main() { char s[20]; scanf("%S",S); printf("%s",s); } 运行程序,输入HOW ARE YOU。
第5题
下列程序运行后,输出结果是______。
main()
{ char *s="abcde";
s+=2;
printf("%s\n", s);
}
第6题
下列程序运行后的输出结果是______。
void sub(int x,int y,int*z)
{*z=y-X;}
main()
{int a,b,c;
sub(7,3,&a);sub(2,a,&b);sub(a,b,&c);
printf("%d,%d,%d\n",a,b,c);
}
第7题
A.22
B.23
C.24
D.程序有误
第8题
A.27.4
B.26.44
C.12.4
D.程序有误
第9题
A.13
B.14
C.23
D.24
第10题
A.其他
B.5
C.10
D.0