sierrac7002 sierrac7002
  • 14-09-2019
  • Computers and Technology
contestada

Why do we need to pass a size as well as the array to any function/procedure where we want it to use this array?

Respuesta :

ExieFansler ExieFansler
  • 20-09-2019

Explanation:

In C++ or C we don't have a function which tells us the size of array which is required.So it is necessary to pass the size of the arrays in the function.At the time of declaration we declare the size of the array more than we need.Then we store the elements upto the size which is necessary.So the actual size of the array is larger than the size we needed.So hence it is necessary to pass the size of the array.

Answer Link

Otras preguntas

What does the word part -cracy mean? describes a government describes a belief describes a condition describes a religion
Compare autotrophs to heterotrophs, and describe the relationship between these two groups of organisms.
The table shows a direct variation. What is the constant of variation? x y 2 4.8 4.5 10.8 6 14.4
Rearrange the following formula v=u+at to make u the subject
advertisement for a company claims that all of its products are recyclable. What must be true for this advertisement to be legal? Select the best answer from th
some one tell me what mean hola in spanish
how much force is needed to accelerate a 1000-kg car at a rate of 3m/s^2
What is SI? Please, explain!!
What does the word part contra- mean? against agreeable self toward
Why did Britain, France, and Russia form a Triple Entente? to support Austrian expansion in the Balkans to strengthen their alliance formed during colonial expa