Arrays and Vectors

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

These flashcards cover critical concepts related to arrays and vectors in programming.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

Array

A variable that can store multiple values of the same type.

2
New cards

Subscript

A unique index assigned to each element in an array, starting at 0.

3
New cards

Size Declarator

The number of elements that an array can hold, indicated in its declaration.

4
New cards

Initialization List

A list of values used to initialize an array, written in curly braces.

5
New cards

Bounds Checking

The process of verifying that an array subscript is within valid limits; C++ does not perform bounds checking.

6
New cards

Parallel Arrays

Two or more arrays that hold related data, where elements are accessed using the same index.

7
New cards

Range-Based For Loop

A loop in C++ that simplifies processing elements of an array without needing an index.

8
New cards

Two-Dimensional Array

An array defined with two size declarators, resembling a table or grid format.

9
New cards

Global Array Initialization

Automatically initializes all elements to 0 by default.

10
New cards

Local Array Initialization

Local arrays are uninitialized by default, meaning they contain indeterminate values.

11
New cards

Implicit Array Sizing

Defining an array size based on the number of elements in the initialization list.