Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6342541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:15:38+00:00 2026-05-24T20:15:38+00:00

As memory is considered to be single dimensional, then can anyone kindly tell (and

  • 0

As memory is considered to be single dimensional, then can anyone kindly tell (and explain) that “How multi-dimesional arrays are represented in Memory”.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:15:39+00:00Added an answer on May 24, 2026 at 8:15 pm

    It depends on the language implementation but more often than not they are represented as a consecutive memory block row after row.
    I wrote about it on my blog:

    Allocated arrays are stored in the heap memory as a continues chunk of
    memory. Two dimensional arrays (same as in the example above) are
    stored similarly – each line of the array (index x,0 – x,n) stored
    together and so to reach the x,y cell we have to go to the j + (i *
    width) place.

    For more details on hoiw arrays are implemented in C++ take a look at:
    C++ Notes: 2-D Array Memory Layout

    Most of the programming languages I encoutered use a similar method to storing multidimensional arrays.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Should Singleton objects that don't use instance/reference counters be considered memory leaks in C++?
Memory Issues So I am writing an app that should be able to page
Consider a single memory access (a single read or a single write, not read+write)
Memory usage is quite critical in my application. Therefore I have specific asserts that
I was implementing some simple Producer/Consumer program that had some semaphores and shared memory.
The general rule, only objects allocated in the free store can cause memory leaks.
I am looking for a nice simple LINQ query that can get an item
I am aware that XDebug's delta should not be considered accurate. However, when tracing
Consider the following C++ program: #include <memory> struct A {}; struct B : A
Consider the following code: #include <iostream> #include <memory> #include <vector> using namespace std; struct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.