What is difference between Array and LinkedList?

Discussion in 'C#' started by nivedita2104, Sep 2, 2008.

  1. #1
    Hi All,

    I need answer of this question with example..

    Waiting your reply..

    Thanks in Advance
    Nivedita
     
    nivedita2104, Sep 2, 2008 IP
  2. vihutuo

    vihutuo Well-Known Member

    Messages:
    1,511
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    180
    #2
    A linked list item will have a property called "NextItem" through which you can get the next time. In array you wont have that.
    In an array you can directly acces an array element like this : ArrayName(Index) ....Usually not possible in Link list
     
    vihutuo, Sep 2, 2008 IP
  3. xcesslogic

    xcesslogic Active Member

    Messages:
    169
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    68
    #3
    Hi you can find answer to this or many of this kind of questions on http://dotnetinterviews.blogspot.com/

    Its a very good, clean and comprehensive site for these kind of questions
    thanks
     
    xcesslogic, Sep 3, 2008 IP