我写了以下代码:
void buildArrays(char *pLastLetter[],int length[], int size, const char str[]) {
int i;
int strIndex = 0;
int letterCounter = 0;
for (i=0; i
while ( (str[strIndex] != SEPERATOR) || (str[strIndex] != '\0') ) {
letterCounter++;
strIndex++;
}
pLastLetter[i] = &str[strIndex-1];
length[i] = letterCounter;
letterCounter = 0;
strIndex++;
}
}
我在pLastLetter [i] =& str [strIndex-1]上得到上面的警告;
pLastLetter is a pointers array that points to a char in str[].
任何人知道为什么我得到它和如何解决它?