Skip to content · ⁨Pular para o conteúdo⁩

2-D arrays: working with a grid · ⁨Arrays 2-D: trabalhando com uma grade⁩

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].
Português

Uma grade de caixas

  • Uma matriz 2D é uma grade: linhas e colunas do mesmo tipo.
  • int g[2][3]; cria 2 linhas e 3 colunas — 6 ints no total.
  • Você acessa uma célula com dois índices: g[row][col].

Handout · ⁨Material de apoio⁩

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP