What is wrong with this code?

It says that when i set
int x = myarray[0][0];
that there is no array(Specific subscript on non array or too many dimensions)


#include <reg52.h>
#include <stdio.h>
#define XBYTE ((unsigned char volatile xdata*) 0)


static char sxima[3][4] = {
{4, 3, 0, 0},
{0x00, 0xFF, 0x00, 0xFF},
{0xFF, 0x00, 0xFF, 0x00}
};


void display1(int x_page, int y_dimension, int myarray){

int x = myarray[0][0];
int y = myarray[0][1];

int i, j;

for (j=1; j <x-1; j++) {
for (i=0; i<y-1; i++) {

myarray[j][i];

}
}


}

void main(void) {
display1(2, 10, sxima);
}