Why was 2 D char array used

in the solution why was a 2d character array used. The same could have achieved using a 1 d character array

We are making a collection of multiple words, this is why 2d character array is used. You must know that to store 1 word…we use a 1d character array…so to store multiple words,we have to use 2d array.
This can also be done by creating a 1d array of C++ STL based string

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.