How would i go about declaring an array that has pointer to linked lists? i need to create an array that has 28 elements(28 letters of the English alphabet) of char type and each of them should be a pointer to a linked list that will store words. i am making a dictionary. i have a good understanding of array and pointers but not that much on linked lists.

Each node in a linked list is actually a pointer to a node object, in your case a node is a structure that contains words and a pointer to another node. So to create an array of pointers to the nodes, create the array of pointers, then use a loop to set each pointer to one of the nodes.

Practice a little creating simple linked lists and all the above will become clear.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.