What is the statement to find the length of an array
Answers
Answered by
0
To find the length of an array, use array data member 'length'. 'length' gives the number of elements allocated, not the number inserted. Write a class with a main method that creates an array of 10 integers and totals them up
Plzzzzzzzzzzzz plzzzzzzzzzzzz plzzzzzzzzzzzz mark me brainliest
Plzzzzzzzzzzzz plzzzzzzzzzzzz plzzzzzzzzzzzz mark me brainliest
Answered by
2
Answer:
To find length of an array A you should use the length property. It is as A.length, do not use A.length () its mainly used for size of string related objects. The length property will always show the total allocated space to the array during initialization.
Explanation:
hope it helps plz mark as brainlist
Similar questions