質問です。
下のコードを実行するとなぜarrayは入れ代わるのでしょうか?
入れ代わることができるならtestも入れ替わるものだと思うのですが…

#include <stdio.h>

void check(int array[], int test){
array[2] = array[3];
test = array[3];
}

int main(void)
{
int array[4] = {1, 2, 3, 4};
int test = 9;
check(array, test);
printf("a[2]= %d test = %d",array[2],test);
return 0;
}