for(s=b;b[i] ;i++ ) 什么意思
for(s=b;b[i] ;i++ ) 什么意思
#include <stdio.h> int main() { int i=0,j=0; int b[10]={9,8,7,6,0,1,2,3,4}; int a[10]={9,8,7,6,0,1,2,3,4}; int *s=b; int *p=a; for(s=b;b[i];i++) printf("b[%d]=%d\n",i,b[i]); printf("\n"); for(p=a;a[j]!=0;j++) printf("a[%d]=%d\n",j,a[j]); return 0; }