0
Dynamic arrays
What are dynamic arrays , dynamic variables?
2 Answers
+ 4
Dynamic arrays and variables are created and are destroyed with the help of explicit operators. You explicitly specify how much memory to allocate for the object. For example, you should use operation "new" or function "malloc()" to create dynamic objects in c++ (to destroy dynamic objects you should use "delete" or "free()").
0
So youâre saying that the variables that we create in heap in which we dynamically allocate memory to the variable using ânewâ operator are called dynamic variables