![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
main(){inta[]={1,2,3,4,5,6,7,8,9,10},s=0,i;for(i=0;i<10;i++)if(a[i]%2==0)s=s+a[i];printf("
main()
{inta[]={1,2,3,4,5,6,7,8,9,10},s=0,i;
for(i=0;i<10;i++)
if(a[i]%2==0)s=s+a[i];
printf("s=%d",s);
}
程序运行结果是:______
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
main()
{inta[]={1,2,3,4,5,6,7,8,9,10},s=0,i;
for(i=0;i<10;i++)
if(a[i]%2==0)s=s+a[i];
printf("s=%d",s);
}
程序运行结果是:______
#include<stdio.h>
main()
{int i,j;
inta[5]={2,4,6,9,12},b[6]={2,3,4,6,8,9};
for(i=0;i<5;i++)
for(j=0;j<6;j++)
if(*(a+i)==*(b+j)printf("%d",*(a+i));
printf("\n");
}
程序运行结果是:______
#include<stdio.h>
main()
{inta[]={1,2,3,4},i,j,s=0;
j=1;
for(i=3;i>=0;i--){s=s+a[i]*j;j=j*10;}
printf("s=%d\n",s);
}
程序运行结果是:______
main()
{inta[]={2,4,6},*ptr=&a[0],x=8,y,z;
for(y=0;y<3;y++)
{z=(*(ptr+y)<y)?*(ptr+y):x;
printf("%d\n",z);}
}
程序运行结果是:_________
main()
{inta[3]={3*0},i;
for(i=1;i<3;i++)scanf("%d",a[i]);
for(i=1;i<3;i++)a[0]=a[0]+a[i+1];
printf("%d",a[0]);
}
错误:______
改正:______
main()
{inta=2,b=3,c;
c=a+b:
b=a++-1:
printf("%d,%d,%d\n",a,b,c);
b=--c+1:
printf("%d,%d,%d\n",a,b,e);
程序运行结果是:______
有以下程序 include<stdio.h> intfun(inta,intb){ retuma+b;} main(){ intx=6,y=7,z=8,r; r=fun(fun(x,y),Z-); printf(%d\n,r);) 程序运行后的输出结果是
A.15
B.21
C.20
D.31
A.输出:***
B.输出:$$$
C.有语法错误不能通过编译
D.可以通过编译,但不能通过连接
有以下程序 include<stdio.h> intflintx,inty) {retum((y-x)*x);} main() {inta=3,b=4,c=5,d; d=flfla,b),f(a,c)); printf(%d\n,d); } 程序运行后的输出结果是
A.10
B.8
C.9
D.7