Aggregate Initialization
Initialize arrays and simple structs using brace-enclosed lists without constructors. Concise syntax for multiple members.
Initialize arrays and simple structs using brace-enclosed lists without constructors. Concise syntax for multiple members.
An array is a block of contiguous memory holding equally-sized elements. That one property gives it
Pointer arithmetic navigates contiguous memory with automatic scaling by type size. Essential for arrays but dangerous without bounds checking.
Summing a range of an array costs time proportional to the range. Do it once and nobody notices; do it