以下的输出结果是main(){ char st[20]= "hello\0\t";printf(),sizeof());}
![](/upload/20220827/c85071da6ff0aadc10ebce6c25bb4f0d.png)
相似题目
-
以下程序的输出结果是( )。#include #include main(){ char *p=abcde\0fghjik\0
-
写出以下程序运行后的输出结果。 #includestdio.h #include string.h int main() { char st[20]={hello\0\t\\\}; printf(%d,%d\n,strlen(st),sizeof(st)); return 0; }
-
以下程序的输出结果是______。char st[20]=hello\0\t\\
-
有以下程序#include #include main(){ char str[ ][20]={“One*World”, “One*Dream!”},*p=str[1];printf(“%d,”,strlen(p));printf(“%s ”,p);}程序运行后的输出结果是( )
-
以下程序的输出结果是( ). struct st { int x;int *y;}*p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],}; main( ) { p=aa; printf(\%d\\n\,++(p->x)); }
-
以下程序的输出结果是( ). main( ) { char c='z'; printf(\%c\,c-25); }
-
以下程序运行后的输出结果是________#include main(){ char *p; int i;p=(char *)malloc(sizeof(char)*20);strcpy(p,\welcome\);for(i=6;i>=0;i--) putchar(*(p+i));printf(\ -\); free(p);}
-
以下程序的输出结果是( )。main(){ char *s=\12134211
-
有以下程序: include <stdlib.h> main() { char *p,*q; p=(char*)malloc(sizeof(char)*20); q=p; scanf("%s%s",p,q); ptintf("%s%s\n",p,q); } 若从键盘输入abc def<回车>,则输出的结果是()。
-
有以下程序 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<stdlib.h> main() { char*p,*q; p=(char *)malloc(sizeof(char)*20);q=p; scanf(“%s%s”,p,q);printf(“%s%s\n”,p,q); } 若从键盘输入:abc def<回车>,则输出结果是
-
有以下程序段main(){ char x=040; printf("%d\n",x<<1);}程序执行后输出的结果是
-
以下程序的输出结果是()。main{char str[]1-10]={"china","beijing"),*p=st
-
数字字符0的ASCII值为48,运行以下程序的输出结果是()。 main (char a=1,b=2; printf("%C,",b++)
-
以下程序的输出结果是 ______。include<iostream.h>void main() {char w[][10]={ "ABC", "DEFGH"
-
以下程序的输出结果是______。main(){char str[12]={'s','t','r','i','n','g'}; printf("%d/n",st
-
有以下程序: 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); } 程序运行后的输出结果是()。
-
以下程序的输出结果是()。struct st{int x;int *y;} *p;int dt[4]={ 10,20,30,40 };struct st aa[4]={ 50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0]};void main(){p=aa;printf("%d/n",++(p->x));}
-
有以下程序(strcat函数用以连接两个字符串)include<stdio.h>include<string.h>main(){char a[20]=”ABCD\0EFG\0”,b[]=”IJK”;strcat(a,b);printf(”%s\n”,a);}程序运行后的输出结果是()。
-
以下程序的输出结果是()。 main {char str[]1-10]={"china","beijing"),*p=str; printf("%s\n",p
-
以下程序的输出结果是main(){char x=040; printf(“%o\n”,x<<1);}A.100B.80C.64D.32
-
以下程序运行后的输出结果是______。 ss(char*s) { char*p=s; while(*p)p++; return(p-s); } main
-
以下程序main(){chars1[20]=“abc”,s2[20]=“123”;if(strcmp(s1,s2)>0)printf(“%s\n”,s1);elseprintf(“%s\n”,s2);}的输出结果是()
-
有以下main(){ char a[]=”abcdefg”,b[10]=”abcdefg”;printf(),sizeof());} 执行后输出结果是()
推荐题目
- 多效停车要关的第一个手阀是()。
- 以下可用于导航的波段有()
- 关于安全带、安全气囊的说法,正确的是()。
- 护士需要工作的环境安全、经济保障、职业安全等,这些需要属于()。
- 劳动合同可以约定试用期,试用期最长不得超过几个月:()
- 患者,男,72岁。反复无痛性肉眼血尿9个月余,近1个月自觉腰部不适、胀痛,偶见黏液中有“烂肉”脱落,膀胱镜检见左侧输尿管口喷血,MRI检查见下图。 https://assets.asklib.com/images/image2/2017041809115797406.jpg 该肿瘤最常见的病理类型()
- 电动潜油泵井的油气分离器作用是什么?各油田常用的有几种?
- 电泵机组安装过程中,分离器安装在()部位。
- 过站航班,除准备数量与离港系统人数相符的过站牌外,还应数出 张过站牌捆扎备用()
- 酱肉中不允许使用苯甲酸,但其配料酱油中可以使用苯甲酸,则酱肉中可以含有苯甲酸,但含量不应超过由酱油带入的水平()