C++ Dynamic Allocation with vectors and containers

1.What is the use of dynamic allocating vectors on the heap and is it a good practice? 2.What is the difference between the following:- vector *col = new vector vector<...

C++ Dynamic Arrays Creation

I am prompted with the question as follows Write a program that prints dynamic arrays. The program creates an int 1D dynamic array of 3 elements and a float 2D dynamic array of 3 ROWS and 3 COLS. …