(单选题)下列程序的运行结果为( )。#include<stdio.h>Void abc(char*str){ intA,b,i,j;For(i=j=0;stri]!='\0';i++)If(stri]!='a')Strj++]=stri];Strj]='\0';}Void main(){ char str]="abcdef";Abc(str);Printf("str]=%s",str);}
选项:
A: str]=a
B: str]=bcdef
C: str]=abcdef
D: str]=ab
发布时间:2024-06-08 22:56:15