The elements of an array are stored successively in memory cells because :
Answers
Options
- by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated✔✔✔
- the architecture of computer memory does not allow arrays to store other than serially
- both of above
- none of above
Answer:
The elements of an array are stored successively in memory cells because by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated
Explanation:
Because array elements are sequentially stored in memory cells. The elements of an array are sequentially stored in memory cells because the computer can only keep track of the address of the first element and the addresses of other elements can be calculated this way.
When we declare an array, space in the computer's memory is reserved for the array. These memory locations contain the array's elements. The most important aspect of arrays is that array elements are always stored in sequential memory locations.