Hire Our Expert Programmer & Technical Writer To Do Your Capstone Project
0 votes
in Programming Languages & Algorithms by (user.guest)

1 Answer

+1 vote
by (user.guest)
selected by (user.guest)
Best answer

A Stack is a data structure that holds similar data items. It uses the principle of LIFO (Last in, First out). A stack has two major operations and these are push and pop. The push operation adds elements to the stack and the pop operation removes elements from the stack. Both operations are done from the top of the stack.

A Queue is also a data structure. It uses FIFO (First in First out). Elements are added from the back or the end of the stack and elements are removed from the top of the stack. 

Related questions

0 votes
1 answer
Welcome to CPENTalk.com

Disclaimer: Every user is solely responsible for anything that he/she posts or uploads on CPENTalk.