Talk:Stride of an array

From Wikipedia, the free encyclopedia

Clarification 1

Quote from article:

  "locations in memory between successive array elements"

This statement could be a bit clearer. Is it referring to the space between elements (e.g. the gap between elements) or the distance from the start of one element to the start of the next element? After reading the ThreeBytesWide example, the answer to my question can be inferred however it would be useful to be more clear.

Clarification 2

Quote from article:

  "An array with stride 1 has elements which are contiguous in memory."

Since it is important to note when the stride is measured in bytes or in units, this article should be more explicit. How about this for a clarification?

  "An array with unit stride has elements which are contiguous in memory."

Due to not stating whether units or bytes are meant, the first statement might lead some to believe that only arrays with 1 byte elements can be contiguous.