I tried this code:
auto p = new int (*)[10];
but I got error messeage:
test.cc:8:21: error: expected expression
auto p = new int (*)[10];
^
1 error generated.
I changed my code:
typedef int array[10];
auto p = new array *;
And then everything goes well. Why is this?