CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions OneStopTesting.com - Testing EBooks, Tutorials, Articles, Jobs, Training Institutes etc.
OneStopGate.com - Gate EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopMBA.com - MBA EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopIAS.com - IAS EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopSAP.com - SAP EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopGRE.com - of GRE EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.

Sponsored Links

Interview Questions
Our Services



INTERVIEW QUESTIONS DATA STRUCTURE DETAILS
Question :

What is the stack?

Category Data Structure Interview Questions
Rating (3.8) By 19 users
Added on 10/22/2009
Views 7221
Rate it!


Answers:

Source: CoolInterview.com

The stack is where all the functions? local (auto) variables are created. The stack also contains some<br>information used to call and return from functions.<br><br>A ?stack trace? is a list of which functions have been called, based on this information. When you start using a debugger, one of the first things you should learn is how to get a stack trace.<br><br>The stack is very inflexible about allocating memory; everything must be deallocated in exactly the reverse order it was allocated in. For implementing function calls, that is all that?s needed. Allocating memory off the stack is extremely efficient. One of the reasons C compilers generate such good code is their heavy use of a simple stack.<br><br>There used to be a C function that any programmer could use for allocating memory off the stack. The<br>memory was automatically deallocated when the calling function returned. This was a dangerous function to call; it?s not available anymore.
Source: CoolInterview.com



Source: CoolInterview.com

A stack is a linear data structure where insertion and deletion of an item can takes place at one end called "TOP" of the stack.And it is a LIFO(Last-in First-out) mechanism.
Source: CoolInterview.com



Posted by: Ajay.s.m

Contact Ajay.s.m Contact Ajay.s.m

Source: CoolInterview.com

stack is data structure ....<br>where it works on the principle of lifo ie(last in first out)<br>eg: stack of books
Source: CoolInterview.com



Posted by: sushanth

Contact sushanth Contact sushanth

Source: CoolInterview.com

stack is a part of memory.it is the storage area of automatic variables.
stack is a linear data structure where insertion and deletion takes place at only one end of it "top" and it works according to LIFO principle
Source: CoolInterview.com



Posted by: RWEHIRU

Contact RWEHIRU Contact RWEHIRU

Source: CoolInterview.com

Stack is a linear data structure in which insertion and deletion are made at one end called TOP and it always initializes to -1.stack is LIFO list and it has PUSH and POP operations for insertion and deletion.insertion and deletion are made dynamically.
Source: CoolInterview.com



Posted by: uday kumar

Contact uday kumar Contact uday kumar

Source: CoolInterview.com

stack is a linear data structure in which insertions and deletions can take only at one end.Push and pop are two operations associated with stack.Push means to insert and pop means to remove an element from the top of stack.It is a LIFO list.Stacks are used to store variables and instructions during execution of the program.
Source: CoolInterview.com



Posted by: surabhi shrivastava

Contact surabhi shrivastava Contact surabhi shrivastava

Source: CoolInterview.com

Stack is a linear, non-primitive data structure.The PUSH(insrtion) and POP(deletion)operations are performed at only one end that is pointed by a variable called TOP.It is a data structure based on the LIFO(last-in,first-out) Mechanism.
Source: CoolInterview.com



Posted by: Anjali Bhatt

Contact Anjali Bhatt Contact Anjali Bhatt

Source: CoolInterview.com

Stack is a linear data-structure which operates as LIFO(last-in-first-out)manner.which contains PUSH(),POP() as standard subroutines and SEEK() as non-standard subroutine.And also it contain all the recursive calls information in the LIFO order.
Source: CoolInterview.com



Posted by: kumaraswamy dapa

Contact kumaraswamy dapa Contact kumaraswamy dapa

Source: CoolInterview.com

a stack is a linear data structure in which insertion and deletion only at one end called the top of the stack. this means, in particular that elements are removed from a stack in the reverse order in which they particular by means. it is performed on LIFO function.
stack is performed on two operations:
1.PUSH:- PUSH is the used to insert an item into stack.
2.POP:-POP is the term used to delete an item from stack.
Source: CoolInterview.com



Posted by: prabhat chaudhary

Contact prabhat chaudhary Contact prabhat chaudhary

Source: CoolInterview.com

stack is ordered data structure.
Stack operations are based on LIFO(LAST IN FIRST OUT)concepts.
There are mainly two operations. they are,
1.PUSH-insert element into stack
2.POP0- remove elements form stack
insertion and deletion take at one end is known as TOP.
Source: CoolInterview.com



Posted by: thinagar

Contact thinagar Contact thinagar

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification Enter the above shown code: *
Inform me about updated answers to this question

Related Questions
View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

View ALL Data Structure Interview Questions & Answers



User Options
India News Network

Latest 20 Questions
What is XML Element?
What is CDATA?
Who is responsible for XML?
What is an XML Schema?
What is well formed XML document?
Why XML has been used for development?
What is SGML?
What are the special characters used in XML?
What are the disadvantages of XML?
Why XSLT is important for XML?
What are nested elements in XML?
What is XQuery?
What is XLink and XPointer?
Why XML editor is needed instead of Notepad?
What is XML Encoding?
Which XML is set to be valid XML?
What is Simple Element?
What is Complex Element?
Is there a way to describe XML data?
What are the three parts of XSL?



Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions



Cache = 0.427734 Seconds