0
Use the vector library in c++ by the following code.
#include<vector>
A vector is always dynamic in the sense that its size is not fixed like a typical C array.
Alternatively, you can use this code here to create a dynamic array in c++.
https://code.sololearn.com/cPNH9X9H0Rzo/?ref=app



