What is the stack?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
What is a pointer with example?
How static variables and local variablesare similar and dissimilar?
Which is better turbo c++ or dev c++?
Is c++ slower than c?
What is the basic structure of c++ program?
Explain the difference between static and dynamic binding of functions?
How do I start a c++ project?
What are the types of array in c++?
Explain the static member function.
In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.
What are destructors?
What is a class template in c++?