单项选择题

下面程序的输出是()。
mare()
int x=3 y=6,a=0;
while(x++!=(y=1))
a+=1;
if(y<x)break;
printf("x=%d,y=%d,a=%d\n",x,y,a);

A、 x=4,y=4,a=1
B、 x=5,y=5,a=1
C、 x=5,y=4,a=3
D、 x=5,y=4,a=1

<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: struct STU char name[10]; int num; float TotalScore; ; void f(struct STU *p) struct STU s[2]= SunDan , 20044, 550, Penghua , 20045, 537, *q=s; ++p; ++q; *p=*q; main() struct STU s[3]= YangSan , 20041, 703, LiSiGuo , 20042, 580; f(s); printf( % s % d % 3.0f n , s[1]. name, s[1]. num, s[1]. TotalScore); 程序运行后的输出结果是()。

A、 SunDan 20044 580
B、 Penghua 20045 537
C、 LiSiGUO 20042 580
D、 SunDan 20041 703

单项选择题
有以下程序: #include<stdio.h> #define N 8 void fun(int*x,int i) *x=*(x+i)+1; main() int a[N]=1,2,3,4,5,6,7,8,i; fun(a,2); for(i=0;i<N 2;i++) printf( %d ,a[i]); printf( n ); 程序运行后的输出结果是()。

A、 1 3 1 3
B、 3 2 3 4
C、 4 2 3 4
D、 1 2 3 4

相关试题
  • 以下程序运行后的输出结果是 。 main()...
  • 以下程序运行后的输出结果是______。...
  • 下列程序的功能是对输入的一行字符中的数字...
  • 下列程序的运行结果是______。 main...
  • 以下程序的功能是:求出数组x中各相邻两个...