> Nowhere, X is uninitialized and probably not equal to NULL.
Being global, it will be NULL.
But that's about as far as the luck runs.
Type: Posts; User: Salem
> Nowhere, X is uninitialized and probably not equal to NULL.
Being global, it will be NULL.
But that's about as far as the luck runs.
> while(X->next != NULL)
1. It should be while ( X != NULL )
2. You're trashing your single GLOBAL variable pointing to the list.
Try passing some parameters to functions.
void display(node...