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

题目内容 (请给出正确答案)
单选题
调用strlen("abcd/0ef/ng/0")的结果为()。
A

4

B

5

C

8

D

10


参考答案

参考解析
解析: 暂无解析
更多 “单选题调用strlen("abcd/0ef/ng/0")的结果为()。A 4B 5C 8D 10” 相关考题
考题 当运行以下程序时,输入 abcd ,程序的输出结果是 : 【 9 】 。insert(char str[]){ int i;i=strlen(str);while(i0){ str[2*i]=str[i];str[2*i-1]='*'; i--;}printf(" % s\n",str);}main(){ char str[40];scanf(" % s",str);insert(str);}

考题 有以下程序#include stdio.h#include string.hmain(){ char a[10]="abcd";printf("%d,%d\n",strlen(a),sizeof(a));}程序运行后的输出结果是A)7,4B)4,10C)8,8D)10,10

考题 下面程序段的运行结果是char *p="abcdefgh";p+=3;printf("%d\n",strlen(strcpy(p,"ABCD")));A.8B.12C.4D.7

考题 有以下程序#includemain(){ char *p="abcde\0fghjik\0 ";printf("%d\n ",strlen(p));}程序运行后的输出结果是A.12B.15C.6D.5

考题 有以下程序 #includestdio.h #incl udestring.h main( ) {char a[10]=”abcd”; printf("%d,%d\n",strlen(a),sizeof(a)); } 程序运行后的输出结果是( )。A.7,4B.4,10C.8,8D.10,10

考题 调用strlen("abc\0ef\0g")的返回值为8。() 此题为判断题(对,错)。

考题 若有以下定义和语句: char s [10]="abcd!",*s2="\nl23\\"; Drintf("%d%d\n",strlen(sl),strlen(s2)); 则输出结果是( )。A.5 5B.10 5C.10 7D.5 8

考题 下面程序段的运行结果是( )。 char a[]="abcdefgh"; char *p=a; p+=3; printf("%d\n",strlen(strcpy(p,"ABCD")));A.8B.12C.4D.7

考题 运行时输入:“abcd”、“ABCD”、“aBcD”,输出S的值为 ______。A.3B.2C.1D.0

考题 运行时输入:“abcd”、“ABCD”、“ABcD”;“abcD”,输出S的值为 ______。A.3B.2C.1D.0

考题 下面程序段的运行结果是char *p="abcdefgh";p+=3;printf("%d\n",strlen(strcpy(P,"ABCD"))); A.8 B.12 C.4 D.7

考题 有以下程序includemain(){char *p=“abcde、Ofghjik\0”;printf(“%d\n”,strlen(p));} 程 有以下程序 #include<string.h> main() { char *p=“abcde、Ofghjik\0”; printf(“%d\n”,strlen(p)); } 程序运行后的输出结果A.12B.15C.6D.5

考题 有以下程序: main() { char a[7]="a0\0a0\0":int i,j i=sizeof(a);j=strlen(a): printf("%d%d\n",i,j); } 程序运行后的输出结果是 ______。A.22B.76C.72D.62

考题 以下程序的输出结果是【】。 include viod main() {char sl[5]= "ABCD", s2=[5];int k 以下程序的输出结果是【 】。include<iostream. h>viod main() {char sl[5]= "ABCD", s2=[5];int k;for(k=0;k<4:k++)s2[k]=(sl[k]- '0' +1) + '0' ;s2[k]= '\0' ;cout<<s2;

考题 有以下程序:includemain(){char *p="abcde\Ofghjik\0";printf("%d\n",strlen(p));}程 有以下程序: #include <string.h> main() {char *p="abcde\Ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是( )。A.12B.15C.6D.5

考题 有以下程序#includestdio.h#includestring.hmain( ){char a[10]=”abcd”;prinff(“%d,%d\n”,strlen(A),sizeof(A));}程序运行后的输出结果是A.7,4B.4,10C.8,8D.10,lO

考题 若有以下定义和语句char s1[10]=”aBcd!”,*s2=”\n123\\”printF(“%d%d\n”,strlen(sl),strlen(s2));则输出结果是A.5 5B.10 5C.10 7D.5 8

考题 有以下程序include.main(){char*p="abcde\ofghjik\0";printf("%d\n",strlen(p));} 程 有以下程序 #include.<string.h> main() { char *p="abcde\ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是A.12B.15C.6D.5

考题 如下程序的输出结果是includeincludeusing namespace std;class XCD{char* 如下程序的输出结果是 #include<lostream> #include<cstring> using namespace std; class XCD{ char*a; int b; public: XCD(char*aa,int bB) { a=new char[strlen(aA) +1]; strcpy(a,aA) ; b=bb; } char*Geta( ){return a;} int Getb( ){return b;} }; int main( ){ char*pl="abcd",*p2="weirong": int dl,6,d2=8; XCD x(pl,d1),y(p2,d2); cout<<strlen(x.Geta( ))+y.Getb( )<<endl; return 0; }A.12B.16C.14D.11

考题 当运行以下程序时,输入abcd,程序的输出结果是:( )。insert(char str[]){int i;i=strlen(str);while(i>0){str[2*i]=str[i];str[2*i-1]='*';i--;}printf("%s\n",str);}main(){char str[40];scanf("%s",str);insert(str);}

考题 ( 31 )若有以下定义和语句char s1[10]= " abcd! " ,*s2= " \n123\\ ";printf ( " %d %d\n ", strlen ( s1 ) ,strlen ( s2 ) ) ;则输出结果是A ) 5 5B ) 10 5C ) 10 7D ) 5 8

考题 下面程序段的运行结果是()。  char *p=“abcdefgh”;  p+=3;  printf(“%d/n”,strlen(strcpy(p,“ABCD”))); A、4B、7C、8D、12

考题 设有定义char*p=“abcde/0fghjik/0”;则printf(“%d/n”,strlen(p));输出结果是()A、12B、15C、6D、5

考题 调用strlen("abcd/0ef/ng/0")的结果为()。A、4B、5C、8D、10

考题 下列哪一项是IPv6地址2001:0000:0000:abcd:0000:0000:0000:0001最为压缩的格式?()A、2001:0:abcd::1B、2001:0:0:abcd::1C、2001::abcd::1D、2001:0000:abcd::1E、2001::abcd:0:1

考题 单选题调用strlen("abcd/0ef/ng/0")的结果为()。A 4B 5C 8D 10

考题 单选题若(ECX)=0ABCD1234H (BL)=0E3H,则语句MOVSX ECX,BL执行后:(ECX)的值为()。A 0ABCD1234HB 0FFFFFFE3HC 000000E3HD 0ABCD12E3H

考题 单选题下面程序段的运行结果是()。  char *p=“abcdefgh”;  p+=3;  printf(“%d/n”,strlen(strcpy(p,“ABCD”)));A 4B 7C 8D 12