answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

What are the different between stack and queue?

A stack is generally First In, Last Out, and a queue is First In First Out.Item can be added or removed only at one end in stack and in a queue insertion at the rear and deletion from the front.The basic operation of stack are 'push' and 'pop', on other hand of queue are 'enque' and 'dequeue'.


Is stack a linear data structure?

Yes. All object on a stack must be of the same type. However, the type may be a base class in which case all objects on the stack must either be of that type or be derived from that type. That is, if a circle, triangle and rectangle class are all derived from a common shape class, a stack of shapes would allow instances of all four types because they are all a type of shape.


How can you add different type of data in a stack?

stack is a linear data structure in which data item is either inserted or deleted at one end there are mainly two operations performed on stack.they're push poppush:writing a value to the stack is push or moving the stack pointer up to accomodatethe new item. pop:reading a value from stack or moving the stack pointer down.


How does a linked list differ from stack and queue?

A linked list is a data structure that allows bi-directional traversal with constant-time access to both the head and the tail of the list. Elements may be pushed and popped from anywhere in the list. A stack is a structure where elements are pushed and popped only at the head of the stack. A stack is typically implemented using an array (either fixed-length or variable-length) where elements are pushed and popped from the end of the array (you need to keep track of where the last-used element is). However, a stack can also be implemented as a singly-linked list, pushing and popping at the head of the list. Stacks generally do not allow traversal of the elements.


What is implicit stack?

A stack created by the user or a programmer is an implicit stack

Related Questions

What do an array and a stack have in common?

Both are linear data structures.


What is the difference between a queue and a stack with example?

A stack is a data structure in which last item inserted is taken out first . That's why they are known as LIFO (last in first out). Inserting an item in stack is termed as push and taking an item out from stack I s termed as pop. Stack pointer is the pointer that points to the top of the stack or that points the item at the top of the stack and help in adding or deleting the item from the top of stack. The queue is a linear data structure where operations of insertion and deletion are performed at separate ends also known as front and rear. Queue is a FIFO structure that is first in first out. types of queues : circular, linear, double ended and priority


Explain the merits and demerits of advertising as an aid to trade?

what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement? what is merits and demerits of posters and advertisement?


What are the merits and demerits of export?

demerits of exports


Merits and demerits of judgemental sampling?

demerits of sampling?


Demerits of kismet robot?

demerits of kimet robots


Merits and demerits of hotels?

hotel merits and demerits


What are the Merits and Demerits of plastic?

merits and demerits of plastics


What are demerits of social responsibility?

demerits of social responsibility


What are the demerits of Deparmental organisation?

Demerits:- 1) Genarally this


What are demerits of spiritual behavior of youth?

demerits of youth


What are the different between stack and queue?

A stack is generally First In, Last Out, and a queue is First In First Out.Item can be added or removed only at one end in stack and in a queue insertion at the rear and deletion from the front.The basic operation of stack are 'push' and 'pop', on other hand of queue are 'enque' and 'dequeue'.