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를 만듭니다.
  • 두 개의 인덱스로 하나의 셀에 접근합니다: g[row][col].

Handout · ⁨교재 자료⁩

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP