What\'s the most \"proper\" way to pass a dynamically sized array to another function?
bool *used = new bool[length]();
I\'ve come up with
Use this:
void myFuncThatAcceptsDynamicArrays(bool* array, int size) { // Do something (using the size as the size of the array) }
It is up to the user of the function to provide a valid size (which can be very dangerous).