Passing multipul arrays

I am trying to get this function right.
I have an set of array's each with 33 numbers. I want pass a different of amount of arrays to a function to process them.

this is what i am doing now:

void actionscript2s(int arrayH[], int array1[],int array2[], int repeat){
 
  int i = 0;
  int temp = 0;

   for (int x = 0;  x < repeat; x++){
    
   
    for (i = 0; i < servocount; i++) 
    {
        Serial.print(" #");
        Serial.print(i);
        Serial.print(" P");
        
        temp = (array1[i]+arrayH[i]);
        Serial.print(temp);    
      }
        finishoutput((array1[servocount]));
        delay((array1[servocount]));
   
    for (i = 0; i < servocount; i++)
    {
        Serial.print(" #");
        Serial.print(i);
        Serial.print(" P");
        
        temp = (array2[i]+arrayH[i]);
        Serial.print(temp);
        
    }
       finishoutput((array1[servocount]));
       delay((array1[servocount]));  
  }
}

its for my octobot. I want to save some space and rewrite to be able to pass any number of arrays to and it have it process them x times

any help would be awesome.

If you understand pointers, you can pass a pointer to an array of arrays:

loop()
{
      int *arrayTemp[2];
                // arraytemp holds the arrays to work with, in this case array1 and array2
      arrayTemp[0] = array1;
      arrayTemp[1] = array2;

                // do the work with the arrays here - we have two of them, so pass 2.
      actionscript2s(arrayTemp, 2);

      printf("done");
}

void actionscript2s(int *arr[], int numArrays)
{
      for(int i=0;i<numArrays;i++)
      {
                      // the array is arr[i].  

                     // here we can walk the members of arr[i].
                     for(int am=0;am<=15;am++)
                          Serial.print((arr[i])[ii]);
      }
}

that will work for me. now if i can get the arduino IDE to stop crashing when i try to compile my Inverse Kinematics port i am good.