题目内容

#include struct STU{ char num[10]; float score[3];};main(){ struct STU s[3]={{"20021",90,95,85}, {"20022",95,80,75},{"20023",100,95,90}},*p;int i; float sum=0;p=s+1;for(i=0;i<3;i++) sum=sum+p->score[i]; printf("%6.2f\n",sum);}The result of this program run is ______ .

查看答案
更多问题

#include void ss(char *s,char t) { while(*s) { if(*s==t) *s=t-'a'+'A'; s++;}} main(){ char str1[100]="abcddfefdbd",c='d';ss(str1,c);printf("%s\n",str1);}What will you see after this program is run? ______

#include int b=0;main( ){ int i ; int f( int a);for(i=0;i<3;i++) printf("%d ",f(i) ) ; }int f( int a){ int c=3; b++; c++; return(a+b+c); }what will you get if this program is run? ______

#include main(){ int a[10]={1,2,3,-4,5,6,7,-8,9,10},s=0;for(int i=0;i<10;i++) if (a[i]<0) s+=a[i]; printf("%d",s);}The result of this program excuted is ______

What is the result of this program excuted? ______ #include main(){ int i=3; switch ( i ) { case 1: i*=1; case 2: i*=2; case 3: i*=3; default : i*=4; } printf("i=%d\n",i);}

答案查题题库