answersLogoWhite

0


Best Answer

It is better to do this when the function needs to work on the entire array, rather than on individual elements. However, do not pass the array by value; always pass by reference.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When is it better to pass an entire array of data to a function rather than individual elements?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How you pass array elements to a function?

Passing array elements to a function is achieved by passing the individual elements by reference or by value, just as you would any other variable. However, passing the entire array requires that you pass a pointer-to-pointer to the array along with the dimension(s) of the array.


What are three ways transposable elements are thought to have contributes to the evolution of the genome?

Promote recombinationDistrupt cellular genes or control elementsCarry entire genes or individual exons to new locations


What is the best thing in the entire universe?

Nothing is better than good health, a successful marriage, and a large fortune. But a salami sandwich is better than nothing. As you can see, individual tastes vary.


What is the relationship with nucleus?

its the function of the entire cell =)


What is the function of each ventricles?

The ventricles of the heart function to pump blood to the entire body.


The entire chart and all of its elements is referred to as?

Chart area


What is an entire chart and all of its elements called?

the periodic table


What is the difference between Individual and family deductibles?

If an individual uses the entire amount for a family deductible is that okay


One function of the nervous system is to maintain?

One function of the nervous system is to maintain the entire body.


What controls the structure and function of the entire organism system?

your buttocks


Can you reference an entire column or an entire row in a function argument by listing only the column or only the row?

yes


How can analyzing the elements of fiction help readers understasnd the story more deeply?

Analyzing anything helps you to understand it better by helping you identify the parts and how they work together. Knowing what each part of the story is doing helps you understand the entire story better.