Hi guys,
I am trying to return dynamically allocated 3-dimensional array from the function. When I run the code, it does not give an error message in the error window. But after the console opens, it gives an error like: program.exe has stopped working.
windows can check online for a solution to the problem.
In the main function I return the function like this:
int ***array = threeDimensionalArray();
after the return, i output the 3 dimensional array and then delete it.
in the function part, i created a dynamically allocated 3 dimensional array and then fill the array with numbers and then return it like this: