can someone tell me what is wrong with this code? We are supposed to use recursion to see if the two arrays are equal.
int Equal(int a[], int b[], int left, int size)
{
if (a == b)
{
return Equal(a, b, left + 1, size);
}
else
return false;
}
int Equal2(int a[], int c[], int left, int size)
{
if (a == c)
{
return Equal2(a, c, left + 1, size);
}
else
return false;
}