单项选择题

有以下程序:
#include<stdio.h>
main()
{ int a=1, b=0;
printf("%d, ", b=a+b);
printf("%d\n"m a=2+b);
}
程序运行后的输出结果是______。

A.0,0
B.1,0
C.3,2
D.1,2
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序:#included<stdio.h>main(){char s[]={ 012xy }; int i, n=0;for(i=0; s[i]!=0; i++)if(s[i]>= a &&s[i]<= z )n++;printf( %d n , n);}程序运行后的输出结果是______。
A.0
B.2
C.3
D.5
单项选择题
有以下程序#include<stdio.h>main(){int a[]={2, 3, 5, 4}, i;for(i=0; i<4; i++)switch(i%2){ case 0: switch(a[i]%2){case 0: a[i]++; break; case 1: a[i]--;}break;case 1: a[i]=0;}for(i=0; i<4; i++)printf( %d , a[i]); printf( n );}程序运行后的输出结果是______。
A.3344
B.2050
C.3040
D.0304
相关试题
  • 以下叙述中正确的是______。
  • 若有以下程序段:int r=8;print( %d...
  • 有以下程序:#include<stdio.h>#inclu...
  • 设有定义:“char*c;”,以下选项中能够...
  • 设有定义:“int a=1, b=2, c=3...