N/APosted on - 02/19/2017
I started studying C++ 2 months back and I have got a good grasp on it. But the concept of stack and linked list is quite tough for me. Can someone tell me the exact difference between stack and linked list?
What Is The Difference Between Stack And Linked List?
A linked list is a series of nodes connected to each other. It contains of two things, content and address of the next node which leads you there. It works on the concept of pointers.
Whereas stack is an abstract kind of data type where you either push our pop an item in or out of the stack. You can only do it from the top of the stack like a stack of plates.