重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 计算机应用技术> 微机原理及应用
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

有以下程序 include<stdio.h> include<string_h> structA {inta;charb[10];doublec;); void

f(structAt); main() {structAa={1001,ZhangDa”,1098.0}; f(a);printf(”%d,%s,%6.1f\n”,a.a,a.b,a.c); } voidf(structAt) {t.a=1002; strcpy(t_b,”ChangRong”); t.c=1202.0;} 程序运行后的输出结果是

A.1002,ChangRong,1202.0

B.1001,ChangRong,1098.0

C.1001,ZhangDa,1098.0

D.1002,ZhangDa,1202.0

答案
查看答案
更多“有以下程序 include<stdio.h> include<string_h> structA {inta;charb[10];doublec;); void”相关的问题

第1题

有以下程序: include<stdio.h> yoidfun(char*c) { while(*c) { if(*c>=aa&&*c<=z)*c=*c=*(

有以下程序: include<stdio.h> yoidfun(char*c) { while(*c) { if(*c>=aa&&*c<=z)*c=*c=*(*a-A); C++; } } yoidmain() { chars[81]; gets(s);fun(s);puts(s); } 当执行程序时从键盘上输入HelloBeijing<回车>,则程序的输出结果是

A.HELLOBEIJING

B.HelloBeijing

C.helloBeijing

D.hELLOBeijing

点击查看答案

第2题

有以下程序#include void main(){ int x,a=1,b=1;while(1){ scanf(“%d”,&x);if(x>0) { a=x; break; }if(x<0) { b=x; continue; }printf(“%d,%d”,a,b);}}程序运行时输入:-1 -2 0 1 2<回车>,则输出结果是()。

A.-1,1

B.2,2

C.1,2

D.-2,1

点击查看答案

第3题

有以下程序,其中函数f的功能是将多个字符串按字典顺序排序。() #include<string.h> voi
有以下程序,其中函数f的功能是将多个字符串按字典顺序排序。() #include<string.h> voi

有以下程序,其中函数f的功能是将多个字符串按字典顺序排序。()

#include<string.h> void f(char *p[],int n) { char *t; int i,j; for(i=0;i<n-1;i++) for(j=i+1;j<n; j++) if(strcmp(p[i],p[j])>0){t=p[i];p[i]=p[j];p[j]=t;} } main() { char *p[5] ={“ abc”, “aabdfg ” ,“abbd”, “dcdbe”, “cd”}

A.6

B.4

C.3

D.2

点击查看答案

第4题

以下程序的输出结果是【 】。 include <stdio.h> deftne JFT(x)x*x main() {

以下程序的输出结果是【 】。 include <stdio.h> deftne JFT(x)x*x main() { int a,k=3; a=++JFT(k+1); printf("%d",a); }

点击查看答案

第5题

以下程序的输出结果是______。 include<stdio.h> main() { double a=1234.56789;

以下程序的输出结果是______。 include<stdio.h> main() { double a=1234.56789; printf("%8.4f,%8.2f\n",a,a); }

点击查看答案

第6题

以下程序运行后,输出结果是______。 include<stdio.h> define PT 5.5 difine S(x) PT*x*

以下程序运行后,输出结果是______。 include<stdio.h> define PT 5.5 difine S(x) PT*x*x main() { int a=1,b=2; printf("%4.1f/n",S(a+b)); }

A.49.5

B.9.5

C.22

D.45

点击查看答案

第7题

以下程序运行后,输出结果是 define PT 5.5 define S(x) PT*x*x include<stdio.h>

以下程序运行后,输出结果是 define PT 5.5 define S(x) PT*x*x include<stdio.h> main() { int a=1,b=2; printf("%4.1f\n",S(a+b));}

A.49.5

B.9.5

C.22

D.45

点击查看答案

第8题

以下程序运行后的输出结果是______。 inClude <strinq.h> char *ss(char *s)

以下程序运行后的输出结果是______。 inClude <strinq.h> char *ss(char *s) { char *p;t; p=S+1;t=*s; while(*p){*(p-1)=*p;p++;} *(p-1)=t; return s; } main() { char *p,str[10]="abcdefgh"; p=ss(str); printf("%s\n",p); }

点击查看答案

第9题

以下程序运行后的输出结果是【 】。 include <stdio.h> msin() { int i,n[]={0,0,0,

以下程序运行后的输出结果是【 】。 include <stdio.h> msin() { int i,n[]={0,0,0,0,0}; for(i=1;i<=4;i++) { n[i]=n[i-1]*2+1; printf("%d",n[i]); } }

点击查看答案

第10题

以下程序的运行结果是()。 # include "stdio.h" main() { struct date { int y,m,d;} today; printf("%d\n", sizeof(struct date));}

A.出错

B.6

C.3

D.2

点击查看答案

第11题

以下程序用业统计文件十字符个数。请填空。 include "stdio.h" main() { FTLE

以下程序用业统计文件十字符个数。请填空。 include "stdio.h" main() { FTLE *fp; long num=OL; if((fp=fopen("fname.dat","r"))==NUlL) { pirntf("Open error\n"); exit(0);} while() { fgetc(fp); num++; } printf("num=%1d\n",num-1); fclose(fp); }

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝