Skip to content
doubtly

1 answer

Best answer

Arrays contain a number of elements, depending on the size you gave it during variable declaration. Each element is assigned a number from 0 to number of elements-1. To assign or retrieve the value of a particular element, refer to the element number. For example: if you have a declaration that says “intscores[5];”, then you have 5 accessible elements, namely: scores[0], scores[1], scores[2], scores[3] and scores[4].
Doubtly · 14 May 2022 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.