#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);}
How many times is the loop body " k++;" executed in the following program segment? ( ) int k=0; while(k=1) k++;
A. Infinite
B. 1
C. 0
D. compile error