auto arr = new int[10];

Piotr Szturmaj bncrbme at jadamspam.pl
Sat Apr 16 05:36:10 PDT 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



More information about the Digitalmars-d-learn mailing list