Ask your own question, for FREE!
Computer Science 12 Online
OpenStudy (anonymous):

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?

OpenStudy (theeric):

So you have a 2D array, after copying the linked list. And you want a 3D array?

OpenStudy (anonymous):

i have a 3d array -.-

OpenStudy (theeric):

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.

OpenStudy (anonymous):

ther's no 2d array in here

OpenStudy (theeric):

So you've started with a linked list and have made a 3D array based on it?

OpenStudy (theeric):

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[][][]".

OpenStudy (theeric):

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.

OpenStudy (anonymous):

sorry that was a typo thanz anyway

OpenStudy (theeric):

No problem! I hope I've helped!

OpenStudy (anonymous):

What language are we using?

OpenStudy (anonymous):

thanx m done........i found some way................ @wio m using c

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!