I have the following problem. I allocated a 2d dynamic array of chars in C. However when I try to populate this array with unique strings in each line, every entry overwrites the previous ones. Thus, I end up with an array that has only the last string in every raw. Can offer some insights? Thank you.I have the following problem. I allocated a 2d