yeh why not
mano M <[EMAIL PROTECTED]> wrote: Can we allocate 2D array
(dynamically) in one line.
int **p;
int i,j;
std::cin>>i>>j;
p=new int[i][j];
--
delete [][]p;
Is the above code snippet acceptable?
Thanks,
Manoj
--
mano M wrote:
> Can we allocate 2D array (dynamically) in one line.
>
> int **p;
>
> int i,j;
> std::cin>>i>>j;
>
> p=new int[i][j];
>
>
> --
>
>
> delete [][]p;
>
>
> Is the above code snippet acceptabl
Can we allocate 2D array (dynamically) in one line.
int **p;
int i,j;
std::cin>>i>>j;
p=new int[i][j];
--
delete [][]p;
Is the above code snippet acceptable?
Thanks,
Manoj
--