Aim To implement operations using linked list. Algorithm Start Define a singly linked list node for Create Head node Display a menu listing stack operations Accept choice If choice = 1 then Create a new node with data Make new node point to first node Make head node point to new node If choice = 2 then Make temp node point to first node Make head node point to next of temp node Release memory If choice = 3 then Display stack elements starting from head node till null Stop
Aim To implement operations using linked list. Algorithm Start Define a singly linked list node for Create Head node Display a menu listing stack operations Accept choice If choice = 1 then Create a new node with data Make new node point to first node Make head node point to new node If choice = 2 then Make temp node point to first node Make head node point to next of temp node Release memory If choice = 3 then Display stack elements starting from head node till null Stop