PDS - Dynamic Memory Allocation

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary and concepts from principles of data structures, focusing on pointers and dynamic memory allocation.

Last updated 6:35 PM on 4/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

Pointer

A variable that stores the memory address of another variable.

2
New cards

Dereferencing

The process of accessing the value at the address stored in a pointer using the indirection operator (*).

3
New cards

Dynamic Memory Allocation

The process of allocating memory at runtime using methods like 'new' in C++.

4
New cards

Array Pointer

A pointer that points to the first element of an array, allowing for array manipulation.

5
New cards

Pointer Arithmetic

Operations that involve accessing memory locations using pointer variables, allowing movement through an array.

6
New cards

Null Pointer

A pointer that is initialized to point to nothing, often indicated by '0', 'NULL', or 'nullptr'.

7
New cards

Memory Leak

A situation where dynamically allocated memory is not freed, leading to wasted memory resources.

8
New cards

Dangling Pointer

A pointer that points to a memory location that has been freed.

9
New cards

Function Parameter Pointer

A pointer passed to a function to allow the function to modify the original variable.

10
New cards

Subscript Notation

Using square brackets to access elements in an array, similar to pointer arithmetic.

11
New cards

Bounds Checking

The verification that an index used to access an array is within valid limits; C++ does not perform this automatically.

12
New cards

Int Pointer Variable

A pointer variable specifically designed to point to integers.

13
New cards

Delete Keyword

A C++ keyword used to free dynamically allocated memory.

14
New cards

New Keyword

A C++ keyword used to allocate dynamic memory on the heap.

15
New cards

Function Return Pointer

A function that returns a pointer to a dynamically allocated array or another data structure.

16
New cards

Swap Function

A function that uses pointers to interchange the values of two variables.