// If you have s statically allocated array, you can determine the number of elements
//from the arrays name. However, if that is the case, and you don't use C++ functionality,
//then most likely there wouldn't be a need for this in the first place.
int array[10];
std::size_t length = 10; // big surprise, that number is right in the definition!