You can use sizeof to find out how many elements are in an array. All you need to do is divide the total size of the array by the size of the individual elements in it.
Click here to download source code for this tutorial.
Next: C++Tutorial for Beginners 23 - Sizeof Multidimensional Arrays
Previous: C++Tutorial for Beginners 21 - Multidimensional Arrays
Click here to see more in "C++ for Complete Beginners"