题目内容

main(){inta[4][4]={{1,2,-3,-4},{0,-5,-6,7},{-8,9,0,-10},{-11,12,-13,0}};int i, j, s=0;for (i=0; i<4; i++){ for (j=0; j<4; j++){ if (a[i][j] < 0)continue;if (a[i][j]= =0)break;s=s+a[i][j];}}printf("%d\n", s);}运行结果为:

查看答案
更多问题

以下程序中给指针p分配三个double型动态内存单元,请填空:#include void main( ){ double *p;p=(double*)malloc(________________________);p[0]=1.5; p[1]=2.5;p[2]=3.5;printf(“%f %f %f\n”,p[0],p[1],p[2]); }

Living in a dormitory at _______________can be a greatexperience. (n.大学)

Our parentsarrangedour _______________throughamatchmaker.(n.婚姻)

Pollutionandother _______________ sometimes cause the number of species to become so small that it cannot survive.(n.活动,行为(复数))

答案查题题库