Skip to content · ⁨الانتقال إلى المحتوى⁩

2-D arrays: working with a grid · ⁨2-Mصفوف: التعامل مع الشبكة⁩

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].

Handout · ⁨ورقة عمل⁩

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP