Kindly advise how to pass a pointer to a an integer array to a function.
I have 2 functions as below:
The array value needs to be preserved between the recursion.
ar_size = fact(x &ar ar_size) is where I have the issue.
[/code]
[/code]
I have 2 functions as below:
The array value needs to be preserved between the recursion.
ar_size = fact(x &ar ar_size) is where I have the issue.
function int'n
ARRAY(int) ar
ar.create(10000)
ar[0] = 1
int ar_size
ar_size = 1
int x
for x 2 n 1
,ar_size = fact(x &ar ar_size)
,out ar_size
int i
int previous_ar_size
previous_ar_size=ar_size-1
out previous_ar_size
for i previous_ar_size 0 -1
,out ar[i]
[/code]
Best Regards,
Philip
Philip