CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS DATA STRUCTURE DETAILS
    Question :
    What is the difference between ARRAY and STACK?
    Category Data Structure Interview Questions
    Rating (0.4) By 1844 users
    Added on 9/13/2009
    Views 1713
    Rate it!
    Answers:

    STACK follows LIFO. Thus the item that is first entered would be the last removed.

    In array the items can be entered or removed in any order. Basically each member access is done using index. No strict order is to be followed here to remove a particular element.



    array may be multidiamensional or onediamensional
    but stack should be onediamensional.
    but both are linear data structure.



    Posted by: neha    

    Contact neha Contact neha

    array is the collection of hetrogenious data elements,where as structure can hav both hetrogenious and non hetrogenious elements



    Posted by: david paul    

    Contact david paul Contact david paul

    array may be multidiamensional or onediamensional
    but stack should be onediamensional.
    but both are linear data structure.
    array is a collection of similer elements and structure doesnt



    Posted by: david paul    

    Contact david paul Contact david paul

    Array and Stack both are linear data structures. But, size of array is fixed, while stack can be grow or shrink. We can say stack is dynamic data structure.
    stack is implemented using LIFO method for to access elements in it, on the other hand,we can access elements from array from any location using its index number in array.



    Posted by: Lakhveer Kaur    

    Contact Lakhveer Kaur Contact Lakhveer Kaur

    By default the value of Stack in programming languages is 1024 but array has only initilization.



    Posted by: prateek    

    Contact prateek Contact prateek

    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
    Tell how to check whether a linked list is circular ?
    View Answer
    Whether Linked List is linear or Non-linear data structure?
    View Answer
    What is the data structures used to perform recursion?
    View Answer
    If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
    View Answer
    List out the areas in which data structures are applied extensively ?
    View Answer
    What is placement new?
    View Answer
    When can you tell that a memory leak will occur?
    View Answer
    What is a node class?
    View Answer
    Minimum number of queues needed to implement the priority queue?
    View Answer
    In an AVL tree, at what condition the balancing is to be done?
    View Answer
    What is the bucket size, when the overlapping and collision occur at same time?
    View Answer
    What is the easiest sorting method to use?
    View Answer
    What is the heap?
    View Answer
    How can I search for data in a linked list?
    View Answer
    What is the quickest sorting method to use?
    View Answer
    Whether Linked List is linear or Non-linear data structure?
    View Answer
    Does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?
    View Answer
    What is a spanning Tree?
    View Answer
    In RDBMS, what is the efficient data structure used in the internal storage representation?
    View Answer
    List out few of the Application of tree data-structure?
    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

    User Options
    Sponsored Links


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

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

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


    Cache = 0 Seconds