J
Jess
Hello,
Does the statement above return a pointer to an array of As, or, a
pointer to the initial A object? Since the statement
new A
returns a pointer to A, then new A[10] should return a pointer to an A
array, i.e. its type is something like
A []*
However, it seems it returns an A pointer, i.e. A*. Does the standard
say "new A[...]" always returns a pointer to the first A object?
Thanks,
Jess
Does the statement above return a pointer to an array of As, or, a
pointer to the initial A object? Since the statement
new A
returns a pointer to A, then new A[10] should return a pointer to an A
array, i.e. its type is something like
A []*
However, it seems it returns an A pointer, i.e. A*. Does the standard
say "new A[...]" always returns a pointer to the first A object?
Thanks,
Jess