测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A48338. 阅读下面的程序;#include<stdio.h>void main(){ int a=1,b=2,c=2,t; while(a<b<c){t=a;a=b;b=t;c--;} printf("%d,%d,%d",a,b,c);}程序的运行结果为( )

单选题 较难

题目描述

阅读下面的程序;

#include<stdio.h>

void main()

{

    int a=1,b=2,c=2,t;

    while(a<b<c){t=a;a=b;b=t;c--;}

    printf("%d,%d,%d",a,b,c);

}

程序的运行结果为(    )

选项(单选)

上一题 下一题