Thread: Newbie question: Right way of creating a matrix using the new operator?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Arrays are always contiguous in memory.
    Yes, that is why pointer arithmetic works. However, when you have an array of 10 pointers that each point to an array, the question seems to have been whether all ten arrays are contiguous in memory, which presumably is what the poster was referring to when he asked about "fragmented memory", and secondly whether that even matters?
    Last edited by 7stud; 04-25-2005 at 09:06 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Weird errors.
    By Desolation in forum C++ Programming
    Replies: 20
    Last Post: 05-09-2007, 01:10 PM
  2. Replies: 6
    Last Post: 11-08-2005, 03:05 PM
  3. Replies: 3
    Last Post: 04-29-2005, 02:03 AM
  4. Help on scrolling matrix for a newbie
    By Saturn V in forum C++ Programming
    Replies: 1
    Last Post: 06-04-2002, 09:12 PM