No, pass the length into the function along with the array.
Edit: It appears that I forgot the word function above...fixed
Last edited on
An alternative is to use C++ container types such as vector.
^ This ^
And sizeof is a preprocessor function, meaning it is replaced with the size before compilation.