What is the difference when array is declared as array[n] or as pointer array* according to example below? I guess that for example both \'a\' and \'c\' point at the first e
The difference between the following two lines:
int g[10];
and
int* h = new int[10];
is that the second is dynamically-allocated, whereas the first is statically-allocated.
For most purposes, they are identical, but where in memory they end up living is different.