answersLogoWhite

0

A double stack is simply two single stacks. (A triple stack is three, etc. And no, we are not talking pancakes or hamburgers. :-)>)

Often, the topic of double stacks comes up in compiler design, where you use one stack for operands and the other stack for operators, during the processing of an infix expression into a postfix expression.

Do not confuse these "extra" stacks with the primary stack provided by your compiler for passing arguments and return details. These "extra" stacks are usually coded explicitly, rather than implicitly, though some libraries such as STL can make it easier to do so.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Computer Science

What does stack overflow at line 16 mean?

If one sees stack overflow at line 13 on the monitor, it means there has been an error. The website is not responding, therefore, one has to wait for a few minutes for the website to be functional again.


What is stack routers?

To stack routers means to physically stack routers. Some stack a couple of routers on top of each other if they plan to just use them as switches or similar.


How can I efficiently use a stack to sort elements in a data structure?

To efficiently use a stack to sort elements in a data structure, you can follow these steps: Push all elements into the stack. Create a temporary stack to store the sorted elements. While the original stack is not empty, pop an element from the original stack. Compare the popped element with the top element of the temporary stack. If the popped element is greater, push it onto the temporary stack. If the popped element is smaller, keep popping elements from the temporary stack and pushing them back onto the original stack until the temporary stack is empty or the top element is greater. Repeat steps 3-6 until the original stack is empty. The elements in the temporary stack will now be sorted in ascending order. By following these steps, you can efficiently use a stack to sort elements in a data structure.


What is interface stack?

The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with five operations that allow a vector to be treated as a stack. The usual push and pop operations are provided, as well as a method to peek at the top item on the stack, a method to test for whether the stack is empty, and a method to search the stack for an item and discover how far it is from the top.


What is a message from webpage stack overflow at line 158?

Thuynch2003@yahoo.com stack overflow at line 158

Related Questions

Double ended stack?

Double ended queue


What is a double stack magazine?

The magazine of a gun holds the bullets. Most magazines are single stack - each bullet directly above the next. Double stack magazines have 2 rows of bullets, slightly staggered.


Does sig sauer make a .45 caliber double stack magazine pistol?

The 250 is a double stack .45 ACP pistol. It has a DAO trigger, however.


Do double strike effects stack in Magic: The Gathering?

No, double strike effects do not stack in Magic: The Gathering. If a creature already has double strike, giving it another double strike effect will not have any additional impact on combat.


What' s a double stack magazine?

A double stack magazine will have the cartridges loaded in a staggered or zigzag pattern like this : --_--_--_--_--_ As opposed to a single stack magazine which will have the cartridges loaded one directly above the other like this : -- -- -- -- --


How do you refresh stack using library functions in C programming?

What do you mean by stack-refreshing? Anyway, there are no stack handling functions in the standard C library.


What does She blew her stack mean?

she was very mad


Best Institute In Pune To Learn Mean Stack?

In order to create web-based applications, MEAN is a group of technologies (MongoDB, Express.js, Angular.js, and Node.js) linked to MEAN StackScript. Each component of website creation, from client-side/server-side to database handling, is developed by MEAN stack, and they are all built on the same technology, known as MEAN StackScript. Developers utilise the MEAN stack, a subset of full-stack development, to create web apps that are quick and potent. Start your MEAN STACK course in Pune today.


How many fat calories does Wendy''s double stack have?

2890 calories.


What is double stack in gun?

It is a magazine where the cartridges are staggered left right left right. A single stack magazine has the cartridges stacked one directly above another. Double stacks usually hold more cartridges.


What does the idiom blow their stack mean?

It means to explode with anger/vent anger. The boss really blew his stack when I told him to stick his job.


What does mean stack in geography?

In geography, a "mean stack" typically refers to a tall, isolated pillar of rock that has been eroded from a headland or sea stack. It is characterized by its vertical column-like shape and is a result of coastal erosion processes such as wave action and weathering. Mean stacks are often found along coastlines with soft or layered rock formations.