What is the stack?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the differences between private, public and protected and give examples.

564


Is c++ an oop?

588


Can we define a constructor as virtual in c++?

603


How java is different from c and c++?

637


Why do we use iterators?

618






Write about c++ storage classes?

745


What is fflush c++?

574


Is rust better than c++?

602


What is the outcome of cout< a) 16 b) 17 c) 16.5

624


What is an html tag?

628


What are the advantages of using typedef in a program?

638


List the advantages of inheritance.

640


Explain 'this' pointer and what would happen if a pointer is deleted twice?

600


What is the maximum combined length of command line arguments including the space between adjacent arguments?

591


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

584