>i know that arrays cannot return values from a function, but structures can.
>if i wanted to return an array, how could i reformat my data to accomplish this?
>are there any drawbacks?
>thanx




Posted 03 December 2008 - 12:36 PM
int array[10];
function (array);
//now array is filled with the numbers 0..9
}
void function(int array[10] )
{
for (int i = 0; i < 10; i++)
array[i] = i;
}
