現在、配列文字列の再割り当てに混乱があります。私がこれを持っている場合:
char** str = (char**)malloc(100*sizeof(char*));
str[0] = (char*)malloc(sizeof(char)*7); //allocate a space for string size 7
//some other code that make the array full
str[0]私の質問は、 sizeに再割り当てしたい場合、8両方を再割り当てする必要がありますstrかstr[0]?
str = (char**)realloc(str,sizeof(char*)*101);
str[0] = (char*)realloc(str[0],sizeof(char)*8);
これは正しいです?