
有以下程序#include<stdio.h>void main(){int a=1,b=0;printf("%d,",b=(a++)+(a++));pfintf("%d\
有以下程序 #include<stdio.h> void main() { int a=1,b=0; printf("%d,",b=(a++)+(a++)); pfintf("%d\n",a+B); } 程序运行后的输出结果是()。
A.4,6
B.2,5
C.3,5
D.2,6

有以下程序 #include<stdio.h> void main() { int a=1,b=0; printf("%d,",b=(a++)+(a++)); pfintf("%d\n",a+B); } 程序运行后的输出结果是()。
A.4,6
B.2,5
C.3,5
D.2,6
第1题
A.12
B.15
C.6
D.5
第2题
A.741
B.963
C.852
D.875421
第3题
(21 )有以下程序
# include (stdio.h >
main ()
{ int a = l ; b = 2 ;
for (; a < 8 ; a++ ) { b+=a ; a+=2 ; }
printf (" %d , %d \ n ", a , b ) ;
}
程序运行后的输出结果是
A ) 9 , 18
B ) 8 , 11
C ) 7 , 11
D ) 10 , 14
第4题
A.2,1
B.2,0
C.3,1
D.6,1
第5题
A.741
B.963
C.852
D.875421
第6题
有以下程序: #include<stdio.h> void fun(char *a,char*B){while(*a=='*')a++; while(*b=*A){b++;a++;} } main() {char*s="****a*b****",t[80]; fun(s,t);puts(t); } 程序的运行结果是()。
A.*****a*b
B.a*b
C.a*b****
D.ab
第7题
有以下程序
#include
main()
{
int y=9 ;
for(; y>0 ; y--)
if(y%3==0 ) printf("%d" , --y) ;}
程序的运行结果是_____
第8题
A.14.0
B.31.5
C.7.5
D.程序有错无输出结果
第9题
A.-11 is a positive odd number.
B.-11 is a negative odd number.
C.-11 is a positive even number.
D.11 is a negative even number.
第10题
(33 )有以下程序
#include <studio.h>
int f (int t[],int n ) ;
main
{ int a[4]={1,2,3,4},s;
s=f (a,4 ) ; printf (" %d\n " ,s ) ;
}
int f (int t[],int n )
{ if (n>0 ) return t[n-1]+f (t,n-1 ) ;
else return 0 ;
}
程序运行后的输出结果是
A ) 4
B ) 10
C ) 14
D ) 6
第11题
有以下程序: #include<stdio.h> main() {FILE*fp;int a[10]={1,2,3},i,n; fp=fopen("d1.dat","w"); for(i=0;i<3;i++)fprintf(fp,"%d",a[i]); fprintf(fp,"\n"); fclose(fp); fp=fopen("d1.dat","r"); fscanf(fp,"%d",&n); fclose(fp); printf("%d\n",n); 程序的运行结果是()。
A.12300
B.123
C.1
D.321