填空题
以下程序运行后的输出结果是【 】。 main( ) { int a [4][4]={{1,2,3,4},{5,6,7,8},{11,12,13,14},{15,16,17,18}}; int i=0,j=0,s=0; while(i++<4) { if(i==2||i==4) continue; j=0; do{ s+= a[j]; j++; } while(j<4); } printf("%d\n",s); }
【参考答案】
92
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是【 】。main( ){ int x=15;while(x>10 &&x<50){ x++;if(x 3){ x++;break;}else continue;}printf( %d n ,x);}
点击查看答案
填空题
以下sstrcpy( )函数实现字符串复制,即将t所指字符串复制到s所指向内存空间中,形成一个新的字符串s。请填空。void sstrcpy(char *s,char *t){ while(*s++=【 】);}main( ){ char str1[100],str2[ ]=”abcdefgh”;sstrcpy(str1,str2);printf(“%s n”,str1);}
点击查看答案
相关试题
以下程序的功能是输入任意整数给n后,输出n...
以下程序中,函数fun的功能是计算X的2次方...
以下程序运行后输入:3,abcde,则输出结...
函数strcmp( )的功能是对两个字符串进行...
以下程序运行后的输出结果是【 】。main(...