Dynamically Allocation of Arrays using Pointers in C++

Dynamically Allocation of Arrays using Pointers in C++

A short video describing how to create dynamically allocated arrays in C++. This also includes how to dynamically allocate a 2 dimensional array or matrix. Since all 2 or higher dimensional arrays in C++ are represented in memory as a string of consecutive values, one can represent a multiple dimensional array with a single dimension array. I show the simple math for 2 dimensional array. #math #cplusplus #arrays