1/10
These flashcards cover critical concepts related to arrays and vectors in programming.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Array
A variable that can store multiple values of the same type.
Subscript
A unique index assigned to each element in an array, starting at 0.
Size Declarator
The number of elements that an array can hold, indicated in its declaration.
Initialization List
A list of values used to initialize an array, written in curly braces.
Bounds Checking
The process of verifying that an array subscript is within valid limits; C++ does not perform bounds checking.
Parallel Arrays
Two or more arrays that hold related data, where elements are accessed using the same index.
Range-Based For Loop
A loop in C++ that simplifies processing elements of an array without needing an index.
Two-Dimensional Array
An array defined with two size declarators, resembling a table or grid format.
Global Array Initialization
Automatically initializes all elements to 0 by default.
Local Array Initialization
Local arrays are uninitialized by default, meaning they contain indeterminate values.
Implicit Array Sizing
Defining an array size based on the number of elements in the initialization list.