Find the answer to your Linux question:
Results 1 to 2 of 2
The using of multidimensional arrays (with 3,4 or more dimensions) do the programming more easy and avoid the errors of its indexing in contrast to 1 dimensional arrays. The only ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    24

    multidimensional arrays


    The using of multidimensional arrays (with 3,4 or more dimensions) do the programming more easy and avoid the errors of its indexing in contrast to 1 dimensional arrays.
    The only problem which i have listen is that the access of its values is more slow because the data are saved at difference places of memory (multiple malloc for all dimension). This is right? Or is too less the time difference that the above problem does not important enough to look?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,539
    Is this a C or C++ problem? Is the array size/dimension known at compile time, or dynamic runtime provided parameters?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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