C++ Dynamic Arrays (Dynamically Allocated Array)

Published: 25 March 2024
on channel: Kenny Yip Coding
2,983
90

C++ Dynamically Allocated Array. More often referred to as a dynamic array, although this is incorrect since dynamic array refers to another concept, but we will discuss that in another video. In this video you will learn how to allocate an array on the heap. This is referred to as a dynamically allocated array, which defers from a statically allocated array on the stack. By creating an array on the heap, the array capacity does not need to be determined at compile time. For this reason, we can create an array that can have varying sizes.

If you need to review these topics:
Arrays:    • Arrays in C++  
Pointers:    • Pointers in C++  
Pointers to Arrays/ Pointer Arithmetic:    • C++ Pointers and Arrays  
Null Pointers:    • C++ Null Pointers  
Dynamic Memory Allocation:    • Dynamic Memory Allocation in C++  

C++ Playlist:
   • C++ Programming Tutorial  

Install C++ with VS Code:
   • How to set up C++ in Visual Studio Code  

Subscribe for more coding tutorials 😄!


Watch video C++ Dynamic Arrays (Dynamically Allocated Array) online without registration, duration hours minute second in high quality. This video was added by user Kenny Yip Coding 25 March 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,983 once and liked it 90 people.