๐Ÿ’ปap computer science a review

Row-Major Traversal

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

Row-major traversal refers to accessing elements in a multi-dimensional array by iterating through each row first before moving on to the next row. In this traversal order, consecutive elements are stored contiguously in memory along rows.

"Row-Major Traversal" also found in: