Skip to content · ⁨דלג לתוכן⁩

2-D arrays: working with a grid · ⁨מערכים בעלי ממד 2-D: עבודה עם רשת⁩

English

A grid of boxes

  • A 2-D array is a grid: rows and columns of the same type.
  • int g[2][3]; makes 2 rows and 3 columns — 6 ints in all.
  • You reach one cell with two indexes: g[row][col].
עברית

רשת תאים

  • מערך 2-D הוא רשת: שורות ועמודות מאותו סוג.
  • int g[2][3]; יוצר 2 שורות ו-3 עמודות - בסך הכל 6 ints.
  • מגיעים לתא אחד באמצעות שני אינדקסים: g[row][col].

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP