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

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course teaches how to create and work with static and dynamic arrays of objects, including resizing them and copying their contents with memcpy or loops. It also explains memory allocation and deallocation, and the difference between deep and shallow copies.

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.