2-Dimensional Array: IGCSE Computer Science Definition
Written by: James Woodhouse
Reviewed by: Robert Hampton
Last updated
Contents
What is a 2-dimensional array?
In IGCSE Computer Science, a 2-dimensional (2D) array extends the concept of a 1D array by adding another dimension. It is structured like a table with rows and columns, allowing data to be stored in a grid format.
How are 2D arrays useful?
2D arrays are used in applications such as spreadsheets, image processing, and game boards where data is organised in rows and columns.
Example in Python:
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print(matrix[1][2]) # Output: 6
Revision resources to ace your exams
Explore 2D arrays in more detail and master other key related terms such as 1D arrays in our revision note pages here:
Arrays (CIE IGCSE Computer Science)
Challenge yourself with our expertly crafted topic questions and strengthen your understanding with our engaging flashcards.
Sign up for articles sent directly to your inbox
Receive news, articles and guides directly from our team of experts.
Share this article