Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

case 1

function_1(int (*array_parameter)[4])
{
int basic_array[9][4]={0,};

for(int i=0 ; i<11 ; i++) 
{
for(int j=0 ; j<12 ; j++)
{
basic_array[i][j]=0;
}
}


printf("basic_array[10] : %d ",basic_array[10]);
printf("*(basic_array+10) : %d ",*(basic_array+10));
printf("(*(basic_array+10))[10] : %d ",(*(basic_array+10))[10]);
printf("*(basic_array[10]+10) : %d ",*(basic_array[10]+10));
printf("*(*(basic_array+10)+10)) : %d ",*(*(basic_array+10)+10));

}

case 2

function_1(int (*array_parameter)[4])
{
int basic_array[9][4]={0,};

int (*array_ptr)[4] = basic_array; 
for(int i=0 ; i<11 ; i++) 
{
for(int j=0 ; j<12 ; j++)
{
array_ptr[i][j] = 0;
}
}

...