i mean if i write the error segment in the following way:
if ( table[y] == NULL )
{
table[y] = newptr;
}
the the adjacency list is printed . but if we don't write in this manner, nothing is printed and the screen remains blank. that means the adjacency list is not being made. I want to know whats the logic behind this? y we cannot use head pointer instead of table[y]?