What is the stack?

Answers were Sorted based on User's Feedback



What is the stack? ..

Answer / subhransu sekhar das

stack is a special datastructure in which we can insert and
delete item at only one end i,e top end.it is having the
order of lifo(last in first out)

Is This Answer Correct ?    38 Yes 1 No

What is the stack? ..

Answer / stranger

A stack is an abstract data type and data structure based on
the principle of Last In First Out (LIFO).A stack is an
ordered list of items.
Items are removed from this list in the reverse order to the
order of their addition.

There are two main operations: push and pop. The push
operation adds (stores) to the list. The pop operation
removes (deletes) an item from the list.

Is This Answer Correct ?    10 Yes 1 No

What is the stack? ..

Answer / karthikamburu

stack is an abstract data type and data structure based on
the principle of Last In First Out (LIFO). Stacks are used
extensively at every level of a modern computer system. For
example, a modern PC uses stacks at the architecture level,
which are used in the basic design of an operating system
for interrupt handling and operating system function calls.
Among other uses, stacks are used to run a Java Virtual
Machine, and the Java language itself has a class
called "Stack", which can be used by the programmer.

Is This Answer Correct ?    8 Yes 1 No

What is the stack? ..

Answer / sushant

stack is a linear data structure which is used for storing data in LIFO manner in this u can insert delete update data at any time by using PUSH POP options it works on TOP t0 BOTTOM manner.. it is used by many programming languages like C C++ JAVA PHP because of its best memory interpretation ease of use in stack is searching sorting and data mangement this is also used by compiler for thread management of opreator precedence table.

Is This Answer Correct ?    0 Yes 0 No

What is the stack? ..

Answer / firstdew

stack is liner data structure which work on simple theorem
of first in first out (like piles of plates kept in order)in
which addition as well as deletion happens from only one end
that is top.

Is This Answer Correct ?    2 Yes 34 No

Post New Answer

More C++ General Interview Questions

Which should be more useful: the protected and public virtuals?

0 Answers  


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

1 Answers  


Write a recursive program to calculate factorial in c++.

0 Answers  


What is the rule of three?

0 Answers  


State the difference between delete and delete[].

0 Answers  






How we can differentiate between a pre and post increment operators during overloading?

0 Answers  


Differentiate between an array and a list?

0 Answers  


What is a wchar_t in c++?

0 Answers  


What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl;

4 Answers   Lehman Brothers,


Explain virtual class?

0 Answers  


What is meant by the term name mangling in c++?

0 Answers  


What is setf in c++?

0 Answers  


Categories