首页 > 大学专科> 电子信息
题目内容 (请给出正确答案)
[主观题]

以下程序的运行结果是______。 struct Node} int x; char ch; }; f

un(struct Node*sn) } static k=1; sn->x=20; Sn->ch=a+k++; } main() { int i; static struct Node st=}10,a}; for(i=0;i<2;i++) fun(&st); printf("%d,%c\n",st.x,st.ch); }

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“以下程序的运行结果是______。 struct Node}…”相关的问题
第1题
以下程序的输出结果是______。 main() { char st[]:"hello\O\t\\"; printf(&

以下程序的输出结果是______。

main()

{ char st[]:"hello\O\t\\";

printf("%d,%d\n",strlen(st),sizeof(st));

}

点击查看答案
第2题
若有如下程序: include"stdio.h" main() {char s[30]; strcpy(&s[0],"abc"); st

若有如下程序: include"stdio.h" main() {char s[30]; strcpy(&s[0],"abc"); strcpy(&s[1],"de"); strcpy(&s[2],"f"); printf("%s\n",s); } 则程序运行后的输出结果是【 】。

点击查看答案
第3题
以下程序的输出结果是()。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));}

A.10

B.11

C.51

D.60

点击查看答案
第4题
以下程序的输出结果是 include<stdio.h> struct st i int x;int *y;}*p; int dt[4]=
{10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&it[0],60,&dt[0],}; main() { p=aa; printf("%d\n",++(p->x));}

点击查看答案
第5题
有两个C程序文件T18.c和myfun.c同在VC系统目录(文件夹)下,其中T18.c文件如下: include <st

有两个C程序文件T18.c和myfun.c同在VC系统目录(文件夹)下,其中T18.c文件如下: include <stdio.h> include "myfun.c" main() { fun(); prinff("\n"); } myfun.c文件如下: void fun() { char s[80],c;int n=0; while((c=getchar())! :\n) s[n++] =c; n--; while (n>=0) prinff("%c" , s [n--] ); } 当编译连接通过后,运行程序T18时,输入"Thank!”,则输出结果是【 】。

点击查看答案
第6题
以下程序的运行结果是()以下程序的运行结果是()

A.18.0000002.000000

B.182.000000

C.18.0000002

D.182

点击查看答案
第7题
运行以下程序,显示的结果是()

A.6

B.8

C.10

D.15

点击查看答案
第8题
下面代码的运行结果是()。defhello_world():print('ST',end='*')defthree_hello():foriinrange(3):hello_world()three_hello()

A.STSTST*

B.STST

C.ST*

D.***

点击查看答案
第9题
以下程序运行后的输出结果是______。 char s[]="\\141\141abc\t"; printf(&quo

以下程序运行后的输出结果是______。

char s[]="\\141\141abc\t";

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

点击查看答案
第10题
运行以下程序,显示的运行结果是()。a=10b=3c=a%bprint()

A.1

B.3

C.3.33

D.3

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