0
Returning array in c++
I want to know can c++ functions return array like other languages for example python? and if it can how should I do it?
5 Respuestas
+ 2
You don't need to return an array in C++. do calls by reference on it's first element and calculate on the pointers. This changes the array's values global.
+ 1
return the int pointer of the array
0
I know that but if don't pass the array to function and the function makes a array with input how I can get it
0
can explain more , please ?
0
thank you so much