Sorry if this is a duplicate in advance.
I am trying to return an array of booleans in a function in c++, where the array's size is declared as an argument to the array.
Could I do something like this?
bool returnBools(int size) {
bool returnValue[size];
// Do some stuff with array
return returnValue;
}