Return array of functions in C++
In c++ functions can return an array?
Answers
Answered by
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
Chemistry,
8 months ago
Computer Science,
8 months ago
Math,
1 year ago
English,
1 year ago
Geography,
1 year ago