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

请读程序:# include<stdio.h>main(){int num=0;while(num<=2){num+ +;printf("%d\n",num);}}上面

请读程序: # include<stdio.h> main() {int num=0; while(num<=2) {num+ +;printf("%d\n",num);} } 上面程序的输出结果是 ()

A.1

B.1 2

C.1 2 3

D.1 2 3 4

答案
查看答案
更多“请读程序:# include<stdio.h>main(){int num=0;while(num<=2){num+ +;printf("%d\n",num);}}上面”相关的问题

第1题

请读程序片段: int i=65536;printf("%d”\n”,i; 上面程序片段的输出结果是 ()A.65536B.0C.有语
请读程序片段: int i=65536;printf("%d”\n”,i; 上面程序片段的输出结果是 ()

A.65536

B.0

C.有语法错误,无输出结果

D.-l

点击查看答案

第2题

请读程序片段(字符串内没有空格字符):printf("%d\n",stlen("ATS\n012\1\ \”)); 上面程序片段的
请读程序片段(字符串内没有空格字符):printf("%d\n",stlen("ATS\n012\1\ \”)); 上面程序片段的输出结果是 ()

A.11

B.10

C.9

D.8

点击查看答案

第3题

若有以下程序: 上面程序的输出结果是()。 A.5B.7C.1D.3
若有以下程序:上面程序的输出结果是()。

A.5

B.7

C.1

D.3

点击查看答案

第4题

请读程序:#include<stdio.h>#defineSUB(X,Y)(X)*Ymain(){int a=3,b=4; printf("%d\n",SUB(a++,b+
请读程序: #include <stdio.h> #define SUB(X,Y) (X)*Y main() { int a=3,b=4; printf("%d\n",SUB(a++,b++)); } 上面程序的输出结果是()。

A.12

B.15

C.16

D.20

点击查看答案

第5题

请读程序:#include<stdio.h>#include<string.h>main(){char*s1="AbCdEf",*s2="aB"; s1++;s2++; p
请读程序: #include<stdio.h> #include<string.h> main() { char*s1="AbCdEf",*s2="aB"; s1++;s2++; printf("%d\n",strcmp(s1,s2)); } 上面程序的输出结果是______。

A.正数

B.负数

C.零

D.不确定的值

点击查看答案

第6题

请读程序片段(字符串内没有空格字符): printf("%d\n",strlen("ATS\n012\1\\"));上面程序片段的输出结果是_______。

A.11

B.10

C.9

D.8

点击查看答案

第7题

请读程序:#include<stdio.h>func(int a, int b){int c; c=a+b; return c;}main(){int x=6,y=7,z=
请读程序: #include <stdio.h> func(int a, int b) { int c; c=a+b; return c; } main() { int x=6,y=7,z=8,r; r=func((x--,y++,x+y),z--); printf("%d\n",r); 上面程序的输出结果是()。

A.11

B.20

C.21

D.31

点击查看答案

第8题

请读程序: # include<stdio.h> # include<string.h> void fun(char * w,int m) { char s,* p
请读程序: # include<stdio.h> # include<string.h> void fun(char * w,int m) { char s,* p1,* p2; p1=w;p2=w+m-1; while(p1<p2) { s=* p1++;*pl=* p2 - -;* p2=s;} } main() { char a[]="ABCDEFG"; fun(a,strlen(a)); puts(a); } 上面程序的输出结果是 ()

A.GEFDCBA

B.AGADAGA

C.AGAAGAG

D.GAGGAGA

点击查看答案

第9题

读程序:#include<stdio.h>f(int b[],int n){ int i,r;r=1;for(i=0;i<=n;i++)r=r*b[i];return r;}
读程序: #include <stdio.h> f(int b[],int n) { int i,r; r=1; for(i=0;i<=n;i++) r=r*b[i]; return r; } main() { int x,a[]={2,3,4,5,6,7,8,9}; x=f(a,3); printf("%d\n",x); } 上面程序的输出结果是()。

A.720

B.120

C.24

D.6

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

订单号:

遇到问题请联系在线客服

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