return 2d array from function?

how to return 2d array from function to main?
then can we save 2d array in 2d array of main and use again?
You can create the array dynamically and then return the pointer, you can pass the destination array as pointer to the function and modify it in the function or you can use vectors or other standard containers
Topic archived. No new replies allowed.