Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

array

A fixed number of values of one type, side by side.

An array [T; N] holds exactly N values of type T contiguously; its length is part of its type.

Loading interactive…

Examples

  • [0; 5] is five zeros, and temps.len() on [18, 21, 19, 24, 22] is 5.

  • [i32; 4] takes 16 bytes: four 4-byte items side by side.

Read the full section →