What is the relationship between the addresses of consecutive elements in a one-dimensional array?

  • Addresses are assigned based on the element's value
  • Addresses are the same for all elements
  • Consecutive elements have addresses in random order
  • Consecutive elements have consecutive addresses
In a one-dimensional array, consecutive elements have consecutive addresses. The address of each element is one unit (e.g., byte) greater than the previous element.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *