以下程序的运行结果是 。#include main(){char str[]={"1a2b3c"};int i;for (i=0;str[i]!='\0';i++)if (str[i]>='0'&&str[i]<='9')printf("%c",str[i]);printf("\n");}
查看答案
以下程序的运行结果是 。#include main(){int a[3][3]={1,2,3,4,5,6,7,8,9},i,s=0;for (i=0;i<=2;i++)s=s+a[i][i];printf("s=%d\n",s);}
以下程序的运行结果是 。#include void main(){int a[3][3]={1,2,3,4,5,6,7,8,9},i,s=1;for (i=0;i<=2;i++)s=s*a[i][i];printf("s=%d\n",s);}
以下程序的运行结果是 。#include void main(){int a[]={0,2,5,8,12,15,23,35,60,65};int x=15,i,n=10,m;i=n/2+1; m=n/2;while (m!=0){if (xa[i]){i=i+m/2+1;m=m/2;}else break;}printf("place=%d",i+1);}
以下程序的运行结果是 。#include void main(){int i,j,row=0,col=0,m;static int a[3][3]={1,-2,0,4,-5,6,2,4};m=a[0][0];for (i=0;i<3;i++)for (j=0;j<3;j++)if (a[i][j]