When an entire array is passed to a function what is actually passed?
Answers
Answered by
0
Answer:
All the elements are passed on to the function.
Explanation:
An array is a set of similar data in the same location. When we pass the array along with its index ranging from 0 to length of array-1, we get individual elements, but if we pass the whole array without the index, all the values are passed to the function. This is by default done by the compiler by making the array an instance of the current class the method is in and will soon be pointed by the class of the method calling the array.
Similar questions