domenicodl
Programmer
Hi,
how do you count the length of an array?
The command "length" works for strings, what I do is to scan the array with a for loop and increment a counter by one until the end of the array. Is there any other smarter way to do it ?
Thank you in advance.
how do you count the length of an array?
The command "length" works for strings, what I do is to scan the array with a for loop and increment a counter by one until the end of the array. Is there any other smarter way to do it ?
Thank you in advance.