my issue is probably something very easy, but i've been banging my head all day at this, among other coding issues, and no luck.

I am trying to program a chess game in C++. Currently I am simply working on printing the board. I have 2 arrays, named whiteArray and blackArray that each have 16 elements, assigned based on the pieces positions on the board. At the beginning of a game the arrays look like:

int board[64] = {1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48,
49, 50, 51, 52, 53, 54, 55, 56,
57, 58, 59, 60, 61, 62, 63, 64};

int blackArray[16] = {1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16};
int whiteArray[16] = {49, 50, 51, 52, 53, 54, 55, 56,
57, 58, 59, 60, 61, 62, 63, 64};

As the pieces move, I will update the white and black arrays accordingly to reflect where specific pieces are. I want to pass the white and black arrays into a function where it checks the values against the board to find a match.

So this long winded version breaks down to.... how do I pass white and black array into a function?