answersLogoWhite

0

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

10y ago

What else can I help you with?

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.


Find the total Charge of a ring?

The total charge of a ring is the sum of the charges of all individual charge elements on the ring. It can be calculated by integrating the charge density function over the entire ring.


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 surjective and injective?

A function is injective (or one-to-one) if different inputs map to different outputs, meaning no two distinct elements in the domain share the same image in the codomain. A function is surjective (or onto) if every element in the codomain is the image of at least one element from the domain, ensuring that the function covers the entire codomain. A function can be both injective and surjective, in which case it is called bijective.


Is it possible for an individual to purchase an entire country?

No, it is not possible for an individual to purchase an entire country. Countries are sovereign entities with their own governments and cannot be bought or sold like property.


One function of the nervous system is to maintain?

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


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

yes