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
   
   

       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!

[Non-text portions of this message have been removed]

Reply via email to