For more information, see the following links:
Stack
Queue
Visually, these two data structures can be seen as follows:
Stack:

Description:
Variations exist in this data structure. However, in simple terms - as you can see in the presented image, when you add data to this structure, you put on top of what is already there, and when you delete, you also gain the upper hand. You can view it as a stack of books that you are viewing one after another, starting from top to bottom to top.
Queue

Description:
There are also variants of this particular data structure, however, in simple terms - as you can see in the presented image, when you add data to this structure, the new element goes at the beginning and when you delete its last element from which it is deleted. You can imagine this as the line you received in the store, where you stand behind a lot of people waiting for your line to come to the counter to pay for your items.
source share