Why are the elements of an array stored successively in memory cells? - ProProfs Discuss
Advertisement

Why are the elements of an array stored successively in memory cells?

Why are the elements of an array stored successively in memory cells?<br/>

Change Image    Delete

Asked by Crsatya, Last updated: Nov 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

E. Austin

E. Austin

E. Austin
E. Austin

Answered Sep 07, 2020

An array is an index which is a based data structure, so in memory, it is somewhat proclaimed in a sequential fashion one after the other.

Arrays are always distributed in contagious memory cells because computers can only keep track of the addresses of the other variables that can be determined.

• The way that the computer is set up does not allow arrays to store other than consecutively.

• It is beneficial to the user because they can readily search for the current element they can use.

• The purpose of arrays is to encourage random access.

• Therefore, it may be possible to go from an array index to the memory address of the value.

upvote downvote
Reply 

H. Martin

H. Martin

H. Martin
H. Martin, Content Writer, Charlotte

Answered Jun 28, 2018

The elements of an array are stored successively so that the computer can keep track the first element’s address. It is helpful to the user or administrator as they can easily search for the latest element they run or used. The previous elements or addresses are calculated. These have been tracked before new elements are added.

The computer will only calculate the disk space they occupy, etc. This can be easily remembered by comparing it to you, getting and wearing the shirt on the top pile of your cabinet knowing that you have 10 shirts below it. Once you add a new address on your computer in your next use, it will be then the one that is being tracked.

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered May 28, 2017

By this way computer can keep track only the address of the first element and the addresses of other elements can be calculated
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.