Lesson 15 of 50 · c
Arrays
Duration: 8 mins
An array is a contiguous block of elements of the same type.
int numbers[5]; // uninitialized (indeterminate values)
int initialized[3] = {1,2,3}; // static initialization
int auto_init[3] = {0}; // all zeroes
You can obtain the number of elements with sizeof(arr) / sizeof(arr[0]). Multi‑dimensional arrays are arrays of arrays (row‑major order).