R
R
raster2020-10-31 19:41:33
C++ / C#
raster, 2020-10-31 19:41:33

C++: difference between an array of dynamic variables and a dynamic one-dimensional array?

int* dyn_int_arr[size];
int* dyn_arr = new int[size];

What are the differences between these two entries? As I understand it, in the first case, a static array of pointers, and in the second case, a dynamic array of integers, right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-10-31
@Rastr_0

Yes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question