B
BrianJones
Hi, if you have a function, how is it possible to return an array? E.g.:
unsigned long[] function(...) // what I want to do, obviously illegal
I do know such would be possible by using a dynamic array e.g:
array *a;
a = function(...)
where function proto is
unsigned long * function(...) // etc
But I want to use static arrays instead. If returning a static array is not
possible, is it possible to pass one by reference, something like:
void function(&array,...)//etc
Thanks,
Ben
unsigned long[] function(...) // what I want to do, obviously illegal
I do know such would be possible by using a dynamic array e.g:
array *a;
a = function(...)
where function proto is
unsigned long * function(...) // etc
But I want to use static arrays instead. If returning a static array is not
possible, is it possible to pass one by reference, something like:
void function(&array,...)//etc
Thanks,
Ben