Hello programmers! I am trying to return an array, made up of 7 members, all type ints via a pointer from a function. Here is a prototype of a function that does this:
int[7] colCountArray={0,0,0,0,0,0,0} //array saved in Board obj.
int* Board::accessColCount()
{
return &colCountArray;
}
However, my compiler dosnt like this. How can I fix this problem?