Displaying a list C

List can be displayed by beginning at the start pointer and traversing the list node till NULL is encountered.
Here also we use a temporary pointer which initially start with first pointer and gets assigned by further links till it becomes NULL.
Function to display the list follows.
code snippet for displaying nodes of link list

display (node* start)
node *temp;
temp = start;
while(temp ! = NULL)
temp = temp->next; /* go to next node * /
}Displaying a list

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

C Topics