题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-03-28 21:55:01

[单选题]#include <stdio.h> void main() { char str[]="\"stop!\",he said"; printf(str); } 程序的运行结果是 ( )。
A.stop!
B. "stop!"
C. "stop",he said
D. he said*/

更多"[单选题]#include &lt;stdio.h> void ma"的相关试题:

[单选题]#include void main() { char str[]="\"stop!\",he said"; printf(str); } 程序的运行结果是 ( )。
A.stop!
B. "stop!"
C. "stop",he said
D. he said*/
[单选题]有以下程序 #include void main() { int a[][2]={10,20,30,40,50,60},(*p)[2]; p=a; printf("%d\n",*(*(p+2)+1)); } 程序运行后的输出结果是 ( )。  
A.10
B.20
C.40
D.60
[单选题]有以下程序 #include void main ( ) { int a[]={1, 2, 3, 4, 5} ; int x, y, *p; p=&a[0]; x=*(p+2); y=*(p+4); printf("%d,%d,%d\n", *p, x, y); } 执行后的输出结果是( )。
A.1,3,5
B.1,2,3
C.1,2,4
D.1,4,5
[单选题]有以下程序 #include void main() { int j,a[]={1,3,5,7,9,11,13,15},*p=a+5; for(j=3;j;j--) { switch(j) { case 1: case 2:printf("%d",*p++); case 3:printf("%d",*(--p)); } } } 执行后的输出结果是( )。
A.9911
B.79911
C.99999
D.991113
[单选题]有以下程序 #include void main() { char *alpha[7]={"ABCD","EFGH","IJKL","MNOP","QRST","UVWX","YZ"}; char **p; int i; p=alpha; for(i=0;i<4;i++) printf("%c",*(p[i])); printf("\n"); } 执行后的输出结果是( )。
A.AEIM
B. BFJN
C.ABCD
D. DHLP
[单选题]有以下程序 #include void main( ) { int a=1,*p,**pp; pp=&p; p=&a; a++; printf ("%d,%d,%d\n", a,*p, **pp); } 执行后的输出结果是( )。
A.2,1,1
B.2,1,2
C.2,2,2
D.1,1,1
[单选题]#include "stdio.h" void main( ) { char str[80]; scanf("%s",str); insert(str); } insert(char s[]) { int i; for(i=strlen(s);i>0;i--) { s[2*i]=s[i]; s[2*i-1]=' '; } printf("%s",s); } 如果输入的字符串是abcd, 则程序的运行结果是 ( ) 。
A. a b c d
B.a c b d
C.a b c d
D.d c b a
[单选题]有以下程序 #include “stdio.h” void main() { int x, y, z; x=y=1; z=x++,y++,++y; printf("%d,%d,%d\n",x,y,z); } 程序运行后的输出结果是( )。
A.1,2,3
B.1,3,2
C.2,3,1
D.3,1,2
[单选题]有以下程序 #include "stdio.h" void main() { char s[12]= "a book"; printf("%.4s",s); } 执行后的输出结果是( )。
A.a book!
B.a book![四个空格]
C.a bo
D.格式描述错误,输出不确定
[单选题]有以下程序 #include "stdio.h" void main( ) { int n[3][3], i, j; for(i=0;i<3;i++ ) for(j=0;j<3;j++ ) n[i][j]=i+j; for(i=0;i<2;i++ ) for(j=0;j<2;j++ ) n[i+1][j+1]+=n[i][j]; printf("%d\n", n[i][j]); } 执行后的输出结果是( )。
A.10
B.8
C.6
D.4

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码