F
Florian Kaufmann
This of course works:
double* p = new double[10];
But now instead a double I want an array of 4 doubles. So the first
attempt would be do simply replace double by double[4]
(double[4])* p = new (double[4])[10];
But that doesn't compile. I tried a lot of different syntaxes. Is it
possible at all?
double* p = new double[10];
But now instead a double I want an array of 4 doubles. So the first
attempt would be do simply replace double by double[4]
(double[4])* p = new (double[4])[10];
But that doesn't compile. I tried a lot of different syntaxes. Is it
possible at all?