设有定义:char s[12] = string ;则printf( %d\n,strlen(s)); 的输出是( )。
有以下程序#include void main(){charstr[]={Hello,Beijing};printf(%d,%d\n,strlen(str),sizeof(str));}程序的运行结果是( )
以下printf语句的输出结果是( )。printf(%d\n, strlen(school));
写出以下程序运行后的输出结果。 #includestdio.h #include string.h int main() { char st[20]={hello\0\t\\\}; printf(%d,%d\n,strlen(st),sizeof(st)); return 0; }
以下程序运行后的输出结果是#include#includeintmain(){charst[20]={hello\0\t\\\};printf(%d%d\n,strlen(st),sizeof(st));return0;}
以下语句的输出结果是( ). printf(%d\n,strlen(\t\065\xff\n));
printf(“%d\\n”,strlen“s\\n\\016\\0end”));的输出结果是( )
以下程序的运行结果是 。#includemain(){int x,y=-2,z=0;if((z=y)<0) x=4;else if(y==0) x=5;else x=6;printf(\\\t%d\\t%d\\n\,x,z);if(z=(y==0))x=5;x=4;printf(\\\t%d\\t%d\\n\,x,z);if(x=z=y) x=4;printf(\\\t%d\\t%d\\n\,x,z);}
以下语句的输出结果是 ( )。printf(\%d\\n\,strlen(\\\t\\\\\065\\xff\\n\));
有以下程序 include <string.h>main(){char p[20]={′a′, ′b′, ′c′, ′d′}, q[]="abc", r[]="abcde";strcat(p, r); strcpy(p+strlen(q), q);printf("%d\n",strlen(p));}程序运行后的输出结果是
下列程序的输出结果是()。include<stdio.h>include<string.h>main(){ char a[]="\n123\\"; printf("%d,%d\n",strlen(A) ,sizeof(A) );}
有以下程序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));}程序运行后的输出结果是
有以下程序 include<string.h> main() { char *p=“abcde、Ofghjik\0”; printf(“%d\n”,strlen(p)); } 程序运行后的输出结果
下列程序的输出结果是()。 include<stdio.h> include<string.h> main() { char a[]="\n123\\"; printf("%d,%d\n",strlen(a),sizeof(a)); }
有以下程序 include <string.h> main(int argc, char *argv[]) {int i=1,n=0; while(i<argc) {n=n+strlen(argv[i]);i++;} printf("%d\n",n); } 该程序生成的可执行文件名为:proc.exe。若运行时输入命令行: proc 123 45 67 则程序的输出结果是______。
以下程序的输出结果是()。 char str[15]=”hello!”; printf(“%d\n”,strlen(str));
有以下程序:# include <stdio.h># include <string.h>main(){char x[]="STRING";x[0]=0;x[1]="\0";x[2]="0";printf("%d%d\n", sizeof(x),strlen(x));}程序运行后的输出结果是______。
◑有以下程序◑include◑include◑main( )◑{char x[]=“STRING”;◑x[0]=0;x[1]=’\0’;x[2]=’0’;◑printf(”%d%d\n”,sizeof(x),strlen(x));◑}◑程序运行后的输出结果是( )。◑6 1◑7 0◑6 3◑7 1
请读程序片段(字符串内没有空格):printf(%d\n,strlen(ATS\n012\1\\));的输出结果是()
设已执行预编译命令include<string.h>,以下程序段的输出结果是char s[]=" an apple" ;printf(" %d\n",strlen(s));
有以下程序: include<strintg.h> main { 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)); } 程序运行后的输出结果是()。
若有以下定义和语句:char*s1="12345",*s2="1234";printf("%d\n",strlen(strcpy(s1,s2)));则输出
下面程序段的运行结果是()。main(){char str【20】=”hello\0adb”printf(“%d \n”,strlen(str)));}
以下程序的输出结果是include<stdio.h>include<string.h>main{charb1[18]=abcdefg,b2[8],*pb=b1+3;while(--pb>=b1)strcpy(b2,pb);printf(%d\n,strlen(b2));}()