0

How could I use the length of an array in a c++ function?

I can't seem to be able to use the length of an array in a c++ function. Sizeof seems to return the wrong number(for an array of 5, it's returning 8) and .size() just gave me an error. Edit: Here's an example https://code.sololearn.com/cNsk28yY7n1d/?ref=app

1st Feb 2019, 2:42 PM
Daniel Cooper
Daniel Cooper - avatar
1 Antwort
+ 8
https://code.sololearn.com/c3nZK46tiN3Z/?ref=app
1st Feb 2019, 2:53 PM
Rstar
Rstar - avatar