题目内容

以下程序将字符串的数字字符删除后输出,请补充完整。void delnum(char *s){ int i,j;for(i=0,j=0;*(s+i);i++){ if(____________________________){ *(s+j)=*(s+i); _______________; }_____________________________;}_____________________;}void main( ){ char t[50];printf(“Input a string:”);gets(t);delnum(_________);printf(“\n%s”,t); }

查看答案
更多问题

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.婚姻)

答案查题题库