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

14,37,60,83,.... What's the rest of the patern?
Thu wants to play “Guess My Number,"she states. “When I triple my number and add five ,I get twenty-six.what is my number?" What is her number? Show how you kno
How will the size of the model for 100,000 compare to the size of the model for 10,000
Predict what the FORCE would be for a mass of 2000g. EXPLAIN how you got your answer.
Yesterday Consuela bought some fudge and caramels for $6. She bought 2 pieces of fudge at 50 cents a piece and some caramels at 25 cents each. She gave some car
3 1/9 dived by 2 2/5
I need help with this homework: Trace the path of energy from the sun to mechanical energy in an organism Does anyone have any idea what it's about? :D
126/399 in simplest form?
immigration reform in the u.s. is not likely to affect what?
how do I write an essay on something kind I did for some one 500 words