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

题目内容 (请给出正确答案)

24、strlen(“abc123”)的结果是()。

A.3

B.4

C.5

D.6


参考答案和解析
6
更多 “24、strlen(“abc123”)的结果是()。A.3B.4C.5D.6” 相关考题
考题 有以下程序#include string.hmain( ){ char p[20]={ 'a', 'b', 'c', 'd'},q[]="abc", r[]="abcde"strcat(p,r); s trcpy(p+strlen(q),q);p rintf("%d\n", strlen (p));}程序运行后的输出结果是A)9B)6C)11D)7

考题 以下程序的输出结果是 【 10 】 。#include string.hmain( ){ printf("%d\n",strlen("IBM\n012\1\\"));}

考题 以下程序的输出结果是_____.# includemain(){ printf(“%d\n”,strlen(“IBM\n012\1\\”));}

考题 有以下程序#includemain(){char p[20]={‘a’,’b’,’c’,’d’},q[]=”abc”, r[]=”abcde”;strcpy(p+strlen(q),r); strcat(p,q);printf(“%d%d\n”,sizeof(p),strlen(p));}程序运行后的输出结果是( )。A.20 9B.9 9C.20 11D.11 11

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

考题 下面语句的输出结果是______。printf("%d\n",strlen("\t\"065\xff\n"));A.14B.8C.5D.输出项不合法,无正常输出

考题 表达式"Abc" + 123的结果为"Abc123"。() 此题为判断题(对,错)。

考题 有以下程序: #includestdio.h #includestrin9.h main( ) {printf{"%d\n",strlen("%d\n",strlen("ATS\n012\|"));} 程序运行后的输出结果是( )。A.3B.8C.4D.9

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

考题 以下程序段的输出结果是 char s[]="\\141\141abc\t"; printf ("%d\n",strlen(s));A.9B.12C.13D.14

考题 “printf("%d\n",strlen("\t\"\023\xAB\nC"));”语句的输出结果是( )。

考题 下列程序在32位linux或unix中的结果是什么?func(char *str){printf(" %d",sizeof(str));printf(" %d",strlen(str));}main(){char a[]="123456789";printf(" %d",sizeof(a));printf(" %d",strlen(a));func(a);}

考题 以下程序的输出结果是( )。 char str[15]=”hello!”; printf(“%d\n”,strlen(str)); A.15 以下程序的输出结果是( )。 char str[15]=”hello!”; printf(“%d\n”,strlen(str));A.15B.14C.7D.6

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

考题 有以下程序#includemain( ){ char p[20]={'a','b','c','d'},q[ ]="abc",r[ ]="abcde';strcat(p,r) ;strcpy(p+strlen(q),q);printf("%d\n",strlen(p));}程序运行后的输出结果是A.9B.6C.11D.7

考题 以下程序的运行结果是【】。 include include using namespace std; void main() 以下程序的运行结果是【 】。include<iostream>include<string>using namespace std;void main(){chara[10]="China",b[]="Chin",c[]="ese";cout<<strlen(strcat(strcpy(a,b),c))<<endl;}

考题 有以下程序# include string.hmain(){char p[20]={′a′, ′b′, ′c′, ′d′}, q[]="abc", r[]="abcde";strcat(p, r); strcpy(p+strlen(q), q);printf("%d\n",strlen(p));}程序运行后的输出结果是A.9B.6C.11D.7

考题 有以下程序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

考题 以下程序片段的输出结果是______。 char str[]="abc\n\012\\\""; printf("%d",strlen(str));A.4B.5C.6D.7

考题 ( 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 s[]= “\\140\140abc\t”;       prntf(“%d\n”,strlen(s));

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

考题 设有char *s="ABCDE";cout strlen(s) endl;输出结果是()A、6B、5C、4D、1

考题 语句printf((“%d/n“,strlen(“ats/no12/1//“));的输出结果是()。A、11B、10C、9D、8

考题 单选题设有char *s="ABCDE";cout strlen(s) endl;输出结果是()A 6B 5C 4D 1

考题 单选题有以下程序#include #include main(){ char p[20]= {'a','b','c','d'}, q[]=abc, r[]=abcde; strcat(p,r); strcpy(p+strlen(q),q); printf(%d,strlen(p));}程序运行后的输出结果是(  )。A 6B 9C 11D 7

考题 单选题以下语句的输出结果是(  )。printf(%d,strlen(\t\\065\xff));A 5B 8C 14D 输出项不合法,无正常输出

考题 填空题以下程序段的输出结果是()。    Char s[]I=”/1238/080abc”;    printf(”%d/n”,strlen(s));