struct node* insert_back(struct node*& head, int data){ struct node* p = head; while(p!= NULL){ p = p->next; } struct node* new_node = (struct node*)malloc(sizeof(node)); new_node->data = data; new_node->next = NULL; p = new_node; return head; }
p
head
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)