C++Tutorial for Beginners 22 - Sizeof and Arrays

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.