Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

size of array

// 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!
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #size #array
ADD COMMENT
Topic
Name
8+6 =