网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
以下程序的输出结果是 includeincludemain(){charb1[8]="abcdefg",b2[8],*

以下程序的输出结果是 #include <stdio.h> #include <string,h> main() { char b1[8]="abcdefg",b2[8],*pb=b1+3; while (--pb>=b1) strcpy(b2,pB) ; printf("%d\n",strlen(b2)); }

A.8

B.3

C.1

D.7


参考答案

更多 “ 以下程序的输出结果是 includeincludemain(){charb1[8]="abcdefg",b2[8],* 以下程序的输出结果是 #include <stdio.h> #include <string,h> main() { char b1[8]="abcdefg",b2[8],*pb=b1+3; while (--pb>=b1) strcpy(b2,pB) ; printf("%d\n",strlen(b2)); }A.8B.3C.1D.7 ” 相关考题
考题 若输入bcdefgh、m、abcdefg,以下程序的输出结果为()。includeincludemain(){i 若输入bcdefgh、m、abcdefg,以下程序的输出结果为( )。 #include<stdio.h> #include<string.h> main() { int i; char string[20],str[3][20]; for(i=0;i<3;i++)gets(str[i]); if(strcmp(str[0],str[1])>0) strcpy(string,str[0]); else strcpy(string,str[1]); if(strcmp(str[2],string)>0) strcpy(string,str[2]); printf("%s",string); }A.bcdefghB.mC.abcdefgD.bcdefgh或abcdefg

考题 以下程序的输出结果是()includeincludemain(){char str[12]={'s','t','r', 以下程序的输出结果是( ) #include<stdio.h> #include<string.h> main() {char str[12]={'s','t','r','i','n','g'}; printf("%d\n",strlen(str)); }A.6B.7C.11D.12

考题 以下程序的输出结果是()。includeincludemam(){charb1[8]="abcdefg",b2[8], 以下程序的输出结果是( )。 #include <stdio.h> #include<string.h> mam() { char b1[8]="abcdefg",b2[8],*pb=b1+3; while(--pb>=b1) strcpy(b2,pB) ; printf("%d\n",strlen(b2)); }A.8B.3C.1D.7

考题 以下程序的输出结果是()。includeinclude main(){char str[12]={'s','t','r 以下程序的输出结果是( )。 #include <stdio.h> #include <string.h> main() { char str[12]={'s','t','r','i','n','g'}; printf("%d\n",strlen(str) ); }A.6B.7C.11D.12

考题 有以下程序:include include using namespace std;int main ( ){ char b1[8 有以下程序: #include <iostream> #include <string> using namespace std; int main ( ) { char b1[8] = "abcdefg"; char b2[8],*pb=b1+3; while (--pb>=b1) strcpy (b2, Pb) ; cout<<strlen (b2) <<end1; return 0; } 程序运行后的输出结果是( )。A.8B.3C.1D.7

考题 有以下程序includ2includemain(){ char b1[8]="abcdefg",b2[8],*pb=b1+3,w 有以下程序 #includ2<stdio.h> #include<string.h> main() { char b1[8]="abcdefg",b2[8],*pb=b1+3, while(--pb>b1)strcpy(b2,pB) ; printf("%d\n",strlen(b2)); } 程序运行后的输出结果是( )A.8B.3C.1D.6

考题 以下程序的输出结果是includeincludemain(){ char b1[8]=“abcdefg”,b2[8], 以下程序的输出结果是 #include<stdio.h> #include<string.h> main() { char b1[8]=“abcdefg”,b2[8],*pb=b1+3; while(--pb>=b1)strcpy(b2,pb) ; printf(“%d\n”,strlen(b2)); }A.8B.3C.1D.7

考题 以下程序的输出结果是【 】。includeincludechar*fun(char*t){ char *p=t;retur 以下程序的输出结果是【 】。include <stdio.h>include <string.h>char *fun(char *t){ char *p=t;return (p+strlen(t)/2);}main(){ char *str="abcdefgh";str=ftm(str);puts(str);}

考题 23、下面程序执行后的输出结果是()。 #include <stdio.h> #include <string.h> int main() { char b1[8]="abcdefg",b2[8],*pb=b1+3; while (--pb>=b1) strcpy(b2,pb); printf("%d",strlen(b2)); return 0; }A.7B.8C.3D.1