dynamic allocation of multidimensional array

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;
}
Topic archived. No new replies allowed.