dynamic memory + linked lists

This is a discussion on dynamic memory + linked lists within the C Programming forums, part of the General Programming Boards category; Since memory is really cheap, are dynamic memory and linked lists still common?...

  1. #1
    Unregistered
    Guest

    dynamic memory + linked lists

    Since memory is really cheap, are dynamic memory and linked lists still common?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >are dynamic memory and linked lists still common?
    Why not? A linked list is still a useful data structure, you can't sort an array or insert in the middle of an array as easily as a linked list. A dynamic array is still useful because you never know when the upper limit of a regular array will be breached. Dynamic memory allocation really has less to do with the computer's memory than convenience and scalability.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Couple of questions about XOR linked lists...
    By klawson88 in forum C Programming
    Replies: 5
    Last Post: 04-19-2009, 04:55 PM
  2. Linked List and Dynamic Memory Allocation
    By girly_engineer in forum C Programming
    Replies: 4
    Last Post: 04-18-2009, 11:50 AM
  3. Singly Linked Lists: Clarification Needed
    By jedispy in forum C++ Programming
    Replies: 4
    Last Post: 12-14-2006, 04:30 PM
  4. Linked list probs
    By mouse163 in forum C++ Programming
    Replies: 5
    Last Post: 02-19-2005, 04:41 PM
  5. need help w/ linked lists
    By MKashlev in forum C++ Programming
    Replies: 11
    Last Post: 08-05-2002, 08:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21