April 16, 2011
is there any different b/w:
auto arr = new int[10];
and
int[10] arr;
?
April 16, 2011
%u wrote:
> is there any different b/w:
> auto arr = new int[10];

arr is dynamic array of int with ten elements

> and
> int[10] arr;
> ?

arr is static array of int with ten elements