Skip to content · ⁨コンテンツへスキップ⁩

2-D arrays: working with a grid · ⁨2次元配列:グリッドとの操作⁩

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次元配列はグリッドです。同じ型の行と列で構成されます。
  • int g[2][3];は2行3列を作成します—合計6個のint。
  • 特定のセルにアクセスするには2つのインデックスを使います:g[row][col]。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP