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

What is constructor in C++?

633


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

605


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

1653


What is prototype in c++ with example?

569


What causes a runtime error c++?

591






Why c++ is faster than java?

602


Is c++ a good first language to learn?

580


Can I learn c++ without learning c?

566


What is the benefit of encapsulation?

596


Why is c++ not purely object oriented?

573


What is namespace & why it is used in c++?

610


What is a local variable?

582


When does a 'this' pointer get created?

624


Can we delete this pointer in c++?

682


Can java be faster than c++?

674