can we return a 3 d array from a function say i call a function that copies contents of a linked list into a 3 d array. now can i return this 3-d array back to the callled function?
So you have a 2D array, after copying the linked list. And you want a 3D array?
i have a 3d array -.-
I don't see why not. I only know Java and a little C++. But you can make a 3D array and assign one of it's 2D array references to the 2D array you've created.
ther's no 2d array in here
So you've started with a linked list and have made a 3D array based on it?
Ah! You're question mentioned a 2D array. Just return the 3D array like you would any other parameter. I only know Java well. In it, you you have an array of type Type, then a 3D array reference is referred to as "Type[][][]".
And then you just put that in your function where you specify return type. I feel like I might not be knowledgable enough to answer this question if that is not the answer.
sorry that was a typo thanz anyway
No problem! I hope I've helped!
What language are we using?
thanx m done........i found some way................ @wio m using c
Join our real-time social learning platform and learn together with your friends!