Hello, thank you in advance for any answers. I am a bit confused on the directions for a homework assignment and was hoping someone could clarify a bit for me. In our homework assignment it states to, "write a set of dynamic linked lists" and so on. Now, the problem I'm confusing myself is at the storage inside of each node. To my understanding, each node contains the prev and next nodes, but also a pointer to the data, in this case being a string. He has asked us to manage these strings as rows of chars such as
char[0] = c // first node being addressed here
char[1] = a
char[2] = t
char[3] = \0
char[4] = d // second node starting here
char[5] = o
char[6] = g
char[7] = \0
I have written my code where each node is holding a string, not separated as shown above... my question is to how you can build your doubly linked list where each node is being address a set of chars.