dynamic allocation of multidimensional array
May 31, 2009 at 1:46pm
hi,
why do i get the error this code or how do i allocate a multidimensional array with new?
1 2 3 4 5 6 7 8
|
int main()
{
int *p;
p = new int [ 3 ][ 3 ];
return 0;
}
|
May 31, 2009 at 1:48pm
Topic archived. No new replies allowed.