题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-03-29 02:13:08

[单项选择]下面程序的输出结果是( )。 #include<iostream> using namespace std; int main( ) { int n=10; while(n>7){ n--; cout<<11<<','; } cout<<endl; }
A. 10,9,8,
B. 9,8,7,
C. 10,9,8,7,
D. 9,8,7,6,

更多"下面程序的输出结果是( )。 #include<iostream>"的相关试题:

[单项选择]下面程序输出的结果是( )。 #include<iostream> using namespace std; void main( ) { char ch[][8]={"good","better","best"}; for(int i=1;i<3;++i) { cout<<ch[i]<<endl; } }
A. good better
B. better best
C. good best
D. good
[单项选择]下面的程序输出结果是( )。 #include<iostream> using namespace std; void add( ) { static int x; x++; cout<<x<<''; } int main( ) { for(int i=0;i<3;i++) add( ); return 0; }
A. 111
B. 123
C. 222
D. 333
[单项选择]下面程序的输出结果是( )。 #include<iostream> using namespace std; void swap(int x[2]) { int t; t=x[0]; x[0]=x[1]; x[1]=t; } void main( ) { int a[2]={4,8}; swap(a); cout<<a[0]<<" "<<a[1]; }
A. 4 8
B. 8 4
C. 4 4
D. 8 8
[单项选择]以下程序输出的结果是( )。 #include<iostream> using namespace std; int main( ) { int **x,*y,z=10; y=&z; x=&y; cout<< **x+1<<endl; return 0; }
A. 11
B. x的地址
C. y的地址
D. 运行错误
[单项选择]下列程序的输出结果是( )。 #include<iostream> using namespace std; int main( ) { char a[]="Hello,Test"; char *p=a; while(*p) { if(*p>='a'&&*p<='z') cout<<char(*p+'A'-'a'); else cout<<*p; p++; } return 0; }
A. hello,test
B. Hello,Test
C. HELLO,TEST
D. hELLO,tEST
[单项选择]以下程序的输出结果是( )。 #include<iostream> using namespace std; void fun(char**q) { ++q; cout<<*q<<end1; } main( ) { static char*s[]={"HI","HELL0","TEST"}; char**p; p=s; fun(p); system("PAUSE"); return 0; }
A. 为空
B. HI
C. HELL0
D. TEST

我来回答:

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

订单号:

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