Returning Dymanic Array

How to return 2D Dymanic Array ?

 
  
Why do you need to return a 2D dynamic array?
I want to return Summation of 2 2D Dynamic array (matrices) ...Thank You for reply
Just return the pointer once the memory is allocated.
Topic archived. No new replies allowed.