+Post New Topic + Post Reply
Results 1 to 4 of 4

Thread: Array VS Stack

  1. #1

    Array VS Stack

    Hello Friends,


    In Computer , Array and Stack both are used to store information in memory ..

    so, What is the difference between Array and stack ...



  2. #2
    Senior Member
    Join Date
    Sep 2012
    Posts
    62
    Hey dear!!

    As you said stack and array is used for storing data but storing and accessing data from these two structures is different for example:

    A stack is a last in, first out (LIFO) abstract data type and linear data structure.

    An array is a data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key

  3. #3
    Senior Member
    Join Date
    Jan 2013
    Location
    India
    Posts
    63
    Hi

    diff array and stack

    1)Array is a linear Data Structure in which insertion and deletion can take place in any position. The elements can be retrieved randomly in Arrays.

    Stack is also a linear data structure in which insertion and deletion will take place at the top position alone. It follows LIFO order i.e. last in first out. The element in the top most position alone can be retrieved.

  4. #4
    Junior Member
    Join Date
    Sep 2012
    Posts
    30
    Hii All,

    But still I am not understood anything on this, please brief me clearly .. I am not so keen about all these Sorry if I am bothering you guys!!



+ Post New Topic + Post Reply
  
   Recent Posts in Education in India
   Most Popular Posts at Sukh Dukh


Posting Permissions

  • You may post new threads
  • You may post replies
  • You may edit your posts