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 selection sorting. Also write an example.

593


What is the type of this pointer in c++?

646


What is function overriding in c++?

616


What is function overloading c++?

580


Explain the purpose of the keyword volatile.

648






How would you obtain segment and offset addresses from a far address of a memory location?

628


Which software is used to run c++ program?

560


What is ifstream c++?

577


What are the rules about using an underscore in a c++ identifier?

641


Difference between delete and free.

625


What is time_t c++?

619


What are friend classes? What are advantages of using friend classes?

617


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

1016


What is constant in c++ with example?

623


Is python better than c++?

603