(adsbygoogle = window.adsbygoogle || []).push({});
A lot of people ask me how to find the size of an array in C++, so here is what I tell them:
The size of the array (bytes) / the size of one element in the array.
Which people don't understand, so here is a little function for it:
template<typename type>
int arraySize(type* anArray)
{
int size = (sizeof(anArray) / sizeof(type));
return size;
}