Singly Linked List: Create Structure
Singly Linked List: Create Structure
CREATE STRUCTURE
struct node
Declare info;
addatbeg(int data)
DELETE DATA
del(int data)
DISPLAY ELEMENTS
display()
search(int data)
ptr=ptr->link;
pos++;
}
5. if(ptr==NULL)
Write: Item is not found in list .