TableNode relation[100];Code:if((relation[i] =(Tnode)malloc(sizeof(TableNode)))==NULL)//allocate memory { printf("Failled to allocate memory.\n"); fflush(stdout); exit(1); }
typedef sturct node TableNode;
typedef TableNode * Tnode;
how u malloc struct node []? Mine is wrong.