Computer Science, asked by pul9inghmransha, 1 year ago

Return array of functions in C++
In c++ functions can return an array?

Answers

Answered by Samundeeswari
0
Not needed... Actually an array is by default reference... hence.. returning an array is not possible.. so to send the array as a non referencing object, then u have to copy the content of the array in another array and send the resultant array to conserve the data of the initial array... so that u will be having two arrays... one with the changes done during the execution of the function to which u passed the array as argument... other... the initial array u got from the user...
Similar questions