aliakmonas
IS-IT--Management
Hi i am having the following problem:
I am using Recursion in C.
Clearly i have a function like that:
void Test(int times,int Array[5][5])
{
times++;
for (i=0;i<3;i++)
Test(times,Array[5][5]);
}
My problem: i cannot get 'earlier' versions of the 2-dimensional array when i do backtracking, while with times
that is possible.
Can i make the array hold the earlier values it had when the recursion goes back (without of course using a stack)
I am using Recursion in C.
Clearly i have a function like that:
void Test(int times,int Array[5][5])
{
times++;
for (i=0;i<3;i++)
Test(times,Array[5][5]);
}
My problem: i cannot get 'earlier' versions of the 2-dimensional array when i do backtracking, while with times
that is possible.
Can i make the array hold the earlier values it had when the recursion goes back (without of course using a stack)