Stacks are Abstract Data types which can be created using Linked-List or arrays depending on our need. If we want to create a LinkedList using stack, we can do it like suppose we pop ,the top element from the stack, create a node using malloc and then insert it at the front of the list, maintaining a head of the linked list and it will be updated every time we pop one element from the stack.