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?

25th Nov 2016, 8:32 AM
Alireza Nobakht
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.
25th Nov 2016, 9:12 AM
Andreas K
Andreas K - avatar
+ 1
return the int pointer of the array
25th Nov 2016, 11:36 AM
Andreas K
Andreas K - avatar
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
25th Nov 2016, 11:24 AM
Alireza Nobakht
0
can explain more , please ?
25th Nov 2016, 11:45 AM
Alireza Nobakht
0
thank you so much
25th Nov 2016, 12:19 PM
Alireza Nobakht