有以下程序 include<string.h> main() { char *p=“abcde、Ofghjik\0”; printf(“%d\n”,strlen(p)); } 程序运行后的输出结果
相似题目
-
当执行下面的程序时,如果输入ABC,则输出结果是()。 #include "stdio.h" #include "string.h" main() { char ss[10]="12345"; gets(ss); strcat(ss,"6789"); printf("%s\n",ss); }
-
有以下程序: #include string.h main( ) { char a[]={'a','b','c','d','e','f','g','h','\0'};int i,j; i=sizeof(a);j=strlen(a); printf(%d,%d\b,i,j); } 程序运行后的输出结果是( ).
-
以下程序的输出结果是( ) #include iostream.h #include string.h void main() { char *p[10]={abc,aabdfg,dcdbe,abbd,cd}; cout<
-
阅读下列程序,则在执行后,程序的运行结果为( ).#include stdio.h#include string.hmain( ){ char a[30]=nice to meet you!
-
写出以下程序运行后的输出结果。 #includestdio.h #include string.h int main() { char st[20]={hello\0\t\\\}; printf(%d,%d\n,strlen(st),sizeof(st)); return 0; }
-
下面程序的输出结果是( ).#include \string.h\main( ){ char *p1=\abc\,*p2=\ABC\,str[50]= \xyz
-
下面程序的运行结果是______。 #include < stdio.h > #include < string.h > main() { char a[7]=\abcdef\,b[4]=\ABC
-
有以下程序 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) );}
-
有下面程序段 include"stdio.h" include"string.h" main() { char a[3][20]={{"china"},{"isa"},{"bigcountry!"}}; chark[100]={0},*p=k; int i; for(i=0;i<3;i++) {p=strcat(p,a[i]);} i=strlen(p); printf("%d\n","i);} 则程序段的输出结果是
-
有以下程序 include <string.h> main(int argc ,char *argv[ ]) { int i,len=0; for(i=1;i
-
下列程序的输出结果是()。 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 则程序的输出结果是______。
-
有以下程序: include<stdio.h> include<string.h> main() {char str[][20][{"One*World","One*Dream!"},*p=str[1]; prinft("%d,",strlen(p));printf("%s\n",p); } 程序运行后的输出结果是()。
-
有以下程序:# 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<string.h>,以下程序段的输出结果是char s[]=" an apple" ;printf(" %d\n",strlen(s));
-
有以下程序(strcat函数用以连接两个字符串)include<stdio.h>include<string.h>main(){char a[20]=”ABCD\0EFG\0”,b[]=”IJK”;strcat(a,b);printf(”%s\n”,a);}程序运行后的输出结果是()。
-
有以下程序,其中函数f的功能是将多个字符串按字典顺序排序()。 include<string.h> void f
-
有以下程序(strcat函数用以连接两个字符串) include<stdio.h> include<string.h>。
-
有以下程序 include<stdio.h>include<string.h>void fun(); } 程序运行后的输出结果是
-
有以下程序 include<stdio.h>include<string.h>typedef struct stu { char name[10]; char gender; int score; } STU; void f(); } 程序的运行结果是
-
以下程序的输出结果是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));}()
-
有以下程序:includ<stdio.h>include<string.h>main()chaa[10]="abcd";printf("%d,%",strlen(a),sizeof(a));}程序运行后的输出结果是()
-
有以下程序: include<stdio.h> include <string.h> typedef struct char name[9]; char sex; float score[2]; STU; void f(STU a) STU b="Zhao", "m", 85.0, 90.0; int i; strcpy(a.name, b.name); a.sex=b.sex; for (i=0
推荐题目
- 薄荷在盛花期含油量最高。
- 各市公司进行本地骨干层线路割接,提前()个工作日发送“综合任务”工单至省网管中心。
- 社会调查研究的过程是一个完整的社会信息处理过程。
- 《关于电信网络等级保护工作有关问题的通知》(信电函[2006]35号)中指出,电信网络具有全程全网的特点,因此()
- 一份完整的创业计划应该包括以下内容
- 心脏听诊时通常按照瓣膜病好发部位的顺序进行,即:
- 在企业生产能力有剩余的情况下,为额外订单的定价可以采取的成本基础为()。
- 物流服务水平的主要指标包括( )。
- 道口内不允许存在钢轨接头,无法避开时,要将钢轨接头()。
- 银行的资产中使用年限在1年以上,单位价值在规定标准以上,并在使用中保持原有实物形态的资产称为()。