how to implement stack operation using singly linked list
Answer Posted / vignesh1988i
we know that stack is a data structure where the
highest priority will be given to the last element that is
pushed inside and the priority will decrease respectively to
the next consecutive elements........ so we are going to
implement in singly list .... so we are going to insert the
node to the left side of a reference node....... operations
performed in stack are : PUSH & POP..... PUSH here means we
are going to insert a element only at last ..... and POP
means displaying the node from first........
thank u
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
ATM machine and railway reservation class/object diagram
What is mean by data types in c?
What is structure in c definition?
Can you please explain the difference between syntax vs logical error?
What is union and structure?
Do string constants represent numerical values?
Can I initialize unions?
What does a pointer variable always consist of?
What is the mean of function?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How can I recover the file name given an open stream?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
a program that can input number of records and can view it again the record
What are the different types of control structures?
What are lookup tables in c?