www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - auto arr = new int[10];

reply %u <asmasm hotmail.com> writes:
is there any different b/w:
auto arr = new int[10];
and
int[10] arr;
?
Apr 16 2011
parent Piotr Szturmaj <bncrbme jadamspam.pl> writes:
%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
Apr 16 2011