char s[5]="123"; int index = 0; while( s[index] != '\0' ){ // get s[index]; index++; }
char s[5]="123"; int index; for(index=0; s[index]; index++){ // get s[index]; }
沒有留言:
張貼留言