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

Describe the advantages of operator overloading?

569


What is the use of register keyword with the variables?

542


Explain one-definition rule (odr).

637


Can you please explain the difference between using macro and inline functions?

516


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

604






what are the decision making statements in C++? Explain if statement with an example?

648


What is a c++ map?

654


Explain the different access specifiers for the class member in c++.

538


What is private inheritance?

592


There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.

2527


What are structures and unions?

565


Refer to a name of class or function that is defined within a namespace?

593


Name the debugging methods that are used to solve problems?

574


What is c++ namespace?

706


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

582