首页 > 眼镜定配工
题目内容 (请给出正确答案)
[主观题]

以下程序:#include<stdio.h>#include<string.h>main(){char str[]="abcd\n\123\xab";printf("%d"

以下程序: #include<stdio.h> #include<string.h> main() {char str[]="abcd\n\123\xab"; printf("%d",(str)); } 运行后的输出结果是()。

A.10

B.9

C.7

D.14

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“以下程序:#include<stdio.h>#include…”相关的问题
第1题
(10)以下程序运行后的输出结果是 【10】 。#include <stdio.h>main(){ int x=10,y=20,t=0;if(

(10)以下程序运行后的输出结果是 【10】 。

#include <stdio.h>

main()

{ int x=10,y=20,t=0;

if(x==y)t=x;x=y;y=t;

printf("%d %d\n",x,y);

}

点击查看答案
第2题
有以下程序#include "stdio.h"main(){ struct date {int year,month,day;}today; printf("%d\n",sizeof(struct date));}程序的运行结果是

A.6

B.8

C.12

D.10

点击查看答案
第3题
有以下程序#include <stdio.h>main(){ int x=1, y=2, z=3; if(x>y) if(y<z) printf(

有以下程序#include <stdio.h>main() { int x=1, y=2, z=3; if(x>y) if(y<z) printf("%d", ++z); else printf("%d", ++y); printf("%d\n", x++);}程序的运行结果是A.331 B.41 C.2 D.1

点击查看答案
第4题
有以下程序 #include<stdio.h> main() {int y=9; for(;y>0;y--) if(y%3==0)printf("%d",--y); } 程序的运行结粜是()。

A.741

B.963

C.852

D.875421

点击查看答案
第5题
有以下程序:#include<stdio.h>void fun(char *a,char*B){while(*a=='*')a++;while(*b=*A){b++;a+

有以下程序: #include<stdio.h> void fun(char *a,char*B){while(*a=='*')a++; while(*b=*A){b++;a++;} } main() {char*s="****a*b****",t[80]; fun(s,t);puts(t); } 程序的运行结果是()。

A.*****a*b

B.a*b

C.a*b****

D.ab

点击查看答案
第6题
有以下程序#include <stdio.h>#include <string.h>typedef struct{ char name[

有以下程序

#include <stdio.h>

#include <string.h>

typedef struct{ char name[9];char sex; float score[2]; } STU;

STU 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;i<2;i++) a.score[i]=b.score[i];

return a;

}

main()

{ STU c={"Qian",'f',95.0,92.0},d;

d=f(c); printf("%s,%c,%2.0f,%2.0f\n",d.name,d.sex,d.score[0],d.score[1]);

}

程序的运行结果是

A)Qian,f,95,92

B)Qian,m,85,90

C)Zhao,m,85,90

D)Zhao,f,95,92

点击查看答案
第7题
有以下程序 #include <stdio.h> main() {int i,j,m=55; for(i=1;i<=3;i++) for(j=3;j<=i;j++)m=m%j; printf("%d\n",m); } 程序的运行结果是

A.0

B.1

C.2

D.3

点击查看答案
第8题
以下程序的运行结果是() #include<stdio.h> main() { int a[]={1,2,3,4,5,6,7,8,9,10,11,12}; int *p=&a[5],*q=NULL; printf("%d%d\n",*p,*q); }

A.运行后报错

B.6 0

C.6 12

D.5 5

点击查看答案
第9题
38) 有以下程序:#include <stdio.h>void fun(char *t,char *s){ while(*t!=0) t++;while((

38) 有以下程序:

#include <stdio.h>

void fun(char *t,char *s)

{ while(*t!=0) t++;

while((*t++=*s++)!=0);

}

main()

{ char ss[10]= " acc " ,aa[10]= " bbxxyy " ;

fun(ss,aa);

printf(" %s,%s\n " ,ss,aa);

}

程序运行结果是

A)accxyy,bbxxyy

B)acc, bbxxyy

C)accxxyy,bbxxyy

D) accbbxxyy,bbxxyy

点击查看答案
第10题
(14 )以下程序用以删除字符串所有的空格,请填空。#include <stdio.h>main (){ char s[100]

(14 )以下程序用以删除字符串所有的空格,请填空。

#include <stdio.h>

main ()

{ char s[100]={ " Our teacher teach C language! " };int i,j;

for (i=j=0;s[i]!= ’ \0 ’ ;i++ )

if (s[i]!= ‘ ’ ) {s[j]=s[i];j++;}

s[j]= 【 14 】

printf (" %s\n " ,s ) ;

}

点击查看答案
第11题
试题32有以下程序#include <stdio.h>#include <string.h>main(){ char a[5][10]={“china”, “beijing”, “you”, “tiananmen”, “welcome”};int i,j; char t[10];for(i=0; i<4; i++)for(j=i+1; j<5; j++)if(strcmp(a[i], a[j])>0){ strcpy(t, a[i]); strcpy(a[i],a[j]); strcpy(a[j], t);}puts(a[3]);}程序运行后输出结果是()

A.beijing

B.china

C.welcome

D.tiananmen

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改