Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Dynamic Arrays of Objects - Data Structures Course Step-by-Step

CodeBeauty via YouTube

Overview

Learn how to create both static and dynamic arrays of objects, insert data, copy between arrays, and manage memory effectively. Understand the difference between deep and shallow copying of data, and practice techniques like using the "memcpy" function and loops. The course covers topics such as memory allocation, array manipulation, and practical tasks to reinforce learning. The intended audience includes learners interested in data structures, memory management, and array operations in programming.

Syllabus

Summary of what you'll learn Dynamic Memory and Arrays of Objects
Example showcase
Creation of static array of objects
Why do we need dynamic arrays?
Creation of dynamic array of objects
Difference between static and dynamic arrays
Deallocating memory
Visual example of memory allocation how arrays are allocated
Tools for code analyzing
Entering data in an array using loops
Arrays and functions passing a dynamic array into a function
Changing size of the dynamic array at runtime visual explanation
Changing the size of the dynamic array at runtime code example
Copying elements from one array to another using "memcpy" function
Copying elements from one array to another using loops
Adjusting existing logic
Practical task for you with instructions
Problem with "memcpy" function
Deep copy VS Shallow copy
Second practical task for you
Final words

Taught by

CodeBeauty

Reviews

Start your review of Dynamic Arrays of Objects - Data Structures Course Step-by-Step

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.