单项选择题
下列程序的运行结果为( )。
群include<stdio.h>
void abc(char*str)
int a,b,i,j;
for(i=0;str[i]!=’\0;i++)
if(str[i]!==:’a’)
str[j++]=str[i];
str[j]=’\0’;
void main()
char str[]="abcdef";
abc(str);
printf("str[]=%s",str);
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include<stdio.h> main() int a=6,b=7,m=I; switch(a%2) case 0:m++;break; case 1:m++; switch(b%2) defaut:m++; case 0:m++;break; printf( %d n ,m); 程序运行后的输出结果是( )。
A.1
B.2
C.3
D.4
点击查看答案&解析
单项选择题
若x=4,y=5,则x&y的结果是( )。
A.0
B.4
C.3
D.5
点击查看答案&解析
相关试题
下面程序的运行结果是______。 #de...
有以下程序 #include<stdio.h> typed...
下列函数从字符数组s[]中删除和c一样的字...
下面程序的运行结果是______。 #in...
下面程序的输出结果是______。 #in...