(C)下面程序的功能是输出所给多个字符串中最小的字符串,请填空。


# include < stdio . h >
# include < string . h >
 void main ()
{ char * a []=(" bag "," good "," This "," are "," Zoo "," park "),_______;
 int i ;
 min = a [0];
 for ( i =1; i <6; i ++)
 if ( strcmp (_______)<0)
 min = a [ i ];
 printf (" The min string is % s \ n ",_________);
}

答案:1. *min    2. a[i],min   3.min

你可能感兴趣的:(c++)