I take the following message of error. How I can correct him?
error: `array' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: for each function it appears in.)
Code:
void display(int b[9][9])
{
int i,j;
for(i = 0; i <9; i++)
{
if(i%3==0)printf("+---------+---------+---------+\n");
printf("%d",i+1);
for(j = 0; j <9; j++)
{
if(j%3==0)
printf("| ");
printf("%d ", array[i][j]);
}
printf("\n");
}
printf("\n");
if(i%3==0) printf("+---------+---------+---------+\n");
}