I'm having trouble understanding pointers with nodes and arrays. assume we have this structure:
typedef struct node
{
int x;
struct node *next;
}node;
if I have an array of node pointers like:
node *table[50];
can I say:
table[0] = malloc(26 * sizeof(node*));
is it possible? I mean table[0] is a pointer to a node but malloc will return a pointer to a pointer of a node. In fact, I want to make more than one (for each pointer in the new array I want to create a new array of node pointers and at last each element of the last array will have a linked list) Hope I was clear and excuse me for my bad English.