当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

下面程序段的运行结果是void main( ){int t a b c;a=1;b=2;C=2;while(a


下面程序段的运行结果是 void main() { int t,a,b,c; a=1;b=2;C=2; while(a<b<c) { t=a;a=b;b=t;c--;} cout << a << "," <<b << "," << c; }

A、1,2,0

B、2,1,0

C、1,2,1

D、2,1,1

参考答案
您可能感兴趣的试题
  • 下面程序的运行结果是()。include<iostream.h>void main(){int i=1;while(i<=8)if(i%3!=2)cont

  • 下面程序段的输出结果是______。class Test{ public static void main(String args[ ]){ MyThread

  • 下面程序的运行结果是 #include<iostream.h> Void main() { int num=1; int &ref=num;ref=

  • 下面程序的运行结果是void swap(int *a,int *b){ int *t; t=a;a=b;b=t;}main(){ int x=3,y=5,*p=

  • 执行下面程序段的输出结果为()。 public class Q { public static void main(String argv[]) {

  • 下面程序的运行结果是 #include void main( ) { int i=1; while(i