题目内容 (请给出正确答案)
[主观题]

有下列程序: include<stdio.h> main() {char c; while((c=getchar())!=,)putcha

有下列程序: include<stdio.h> main() {char c; while((c=getchar())!=,)putchar(C) ; } 程序运行时,如果从键盘输入:A,B,<CR>,则输出结果为______。

提问人:网友xykweb 发布时间:2022-01-06
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
更多“有下列程序: include<stdio.h> main()…”相关的问题
第1题
有以下程序#include <stdio .h> main (){ printf("%d\n", NULL); }A.0B.1C.-1D.NULL没定义,出错

有以下程序 #include <stdio .h> main () { printf("%d\n", NULL); }

A.0

B.1

C.-1

D.NULL没定义,出错

点击查看答案
第2题
有以下程序:#include <stdio, h>void sum(int a[ ] ){a[0]=a[-1] +a[1];}main (){int a[10] = {

有以下程序:#include <stdio, h>void sum(int a[ ] ){ a[0]=a[-1] +a[1];}main (){ int a[10] = {1,2,3,4,5,6,7,8,9,10}; sum(&a[2]); prinff("% d \n",a[2]); }程序运行后的输出结果是()。

A.6

B.7

C.5

D.8

点击查看答案
第3题
有以下程序:#include <stdio, h>main(){char a1 ='M',a2 ='m'; printf("%c\n",(a1,a2));} 以下

有以下程序:#include <stdio, h>main(){ char a1 ='M',a2 ='m'; printf("%c\n",(a1,a2)); } 以下叙述中正确的是()。

A.程序输出大写字母M

B.程序输出小写字母m

C.格式说明符不足,编译出错

D.程序运行时产生出错信息

点击查看答案
第4题
有以下程序:#include <stdio, h>main (){int a =666,b =888;printf("%'d \n", a,b); 程序运行

有以下程序: #include <stdio, h> main () { int a =666,b =888; printf("%'d \n", a,b); 程序运行后的输出结果是()。

A.错误信息,

B.666

C.888

D.666,888

点击查看答案
第5题
有以下程序:#include <stdio, h>main(){int m =0256,n =256;printf("% o % o \n" ,m,n); 程序

有以下程序: #include <stdio, h> main() { int m =0256,n =256; printf("% o % o \n" ,m,n); 程序运行后的输出结果是() 。

A.0256 0400

B.0256 256

C.256 400

D.400 400

点击查看答案
第6题
有以下程序:#include <stdio, h>#include <string, h>struet STU{ int nam;float TotalSeore;};v

有以下程序:#include <stdio, h>#include <string, h>struet STU{ int nam; float TotalSeore;};void f(strnct STU p){ struct STU s[2] = { {20044,550} ,{20045,537} }; p.num = s [1]. num; p.TotalScore = s [1]. TotalScore;main(){ struct STU s[2] = {{20041,703} ,{20042,580}}; f(s[0] ); printf("%d %3.Of\n" ,s[0].num,s[0].TotalSeore); }程序运行后的输出结果是()。

A.20045 537

B.20044 550

C.20042 580

D.20041 703

点击查看答案
第7题
有下面的程序: include <stdio, h> main () { enum team {my,your=4,his,her=his+10};

有下面的程序: include <stdio, h> main () { enum team {my,your=4,his,her=his+10}; prinff(" % d %d %d %d \n" ,my,your,his,her); 此程序的输出结果是【 】。 A) 0 1 2 3 B) 0 4 0 1 0 C) 0 4 5 1 5 D) 1 4 5 1 5

点击查看答案
第8题
有以下程序:#include <stdio, h>void fun(iht * a,int i,int j){int t;if(i < j) {t=a[i];a[i] =

有以下程序:#include <stdio, h>void fun(iht * a,int i,int j){ int t; if(i < j) { t=a[i];a[i] =a[j] ;a[j]=t; i++;j--; fun(a,i,j);main () int x[ ]: {2,6,1,8} ,i; fun(x,0,3); for(i=0;i <4;i ++ ) printf("%2d" ,x[i] ); printf(" \n");

A.1268

B.8621

C.8162

D.8612

点击查看答案
第9题
有以下程序: #include <stdio, h>main () {int k=5,n =0; while (k>0){switch (k) {default: b

有以下程序: #include <stdio, h>main () { int k=5,n =0; while (k>0) { switch (k) { default: break; case 1 : n+ =k; case 2 : case3 : n+ =k; } k--; printf("% d \n" ,n);}程序运行后的输出结果是()。

A.0

B.4

C.6

D.7

点击查看答案
第10题
有以下程序: #include <stdio, h>void sort(int a[] ,int n){int i,j,t; for(i=0;i<n;i ++ )for(

有以下程序: #include <stdio, h>void sort(int a[] ,int n){ int i,j,t; for(i=0;i<n;i ++ ) for(j =i+ 1;j<n;j ++ ) if(a[i]<a[j]){ t=a[1] ;a[i]=a[j] ;a[j] =t; }main(){ int aa[10] = {1,2,3,4,5,6,7,8,9,10} ,i; sort(aa +2, 5); for(i =0;i<10;i++) prinff("%d," ,aa[i]); prinff("\n");程序运行后的输出结果是()。

A.1,2,3,4,5,6,7,8,9,10,

B.1,2,7,6,3,4,5,8,9,10,

C.1,2,7,6,5,4,3,8,9,10,

D.1,2,9,8,7,6,5,4,3,10,

点击查看答案
第11题
有以下程序: #include <stdio, h>int a =2;int f(int n){ static int a: 3;intt=0;if(n%2){ stat

有以下程序: #include <stdio, h>int a =2;int f(int n){ static int a: 3; int t=0; if(n%2){ static int a=4;t+ =a++;} else { static int a=5;t+ :a++;} return t + a + +;main (){ int s=a,i; for(i=0;i<3;i++)s + =f(i); prinff("% d \n" ,s); }程序运行后的输出结果是()。

A.26

B.28

C.29

D.24

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信