I've noticed that if you try to use one of the built in functions, such as minval on an array that isnt full you get ???????? as a result. If I have a ten element array, how do I ask if element 10 is full? Thanks.
If you know how many items you have put into the array, when the item count is equal to the size of the array, then it is full. You may not know how big an array is when it is passed into a function. In that case, you need to keep an item count and pass that item count into the called function.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.