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 type of sentence is this. If somebody wishes to volunteer we will begin.
if the sum of an angle measures of a polygon with sides s is 2340, what is s​
"The big white house on the hill clearly" was different from any of the other homes in the subdivision. It had more rooms, a double lot, and a large oversized g
find all the missing measurement​
help me find the value of x and explain if you can :) thank you!
De los 30 balones de un colegio, dos quintos son de fútbol, un tercio de baloncesto y el resto de voleibol. ¿Cuántos balones de voleibol hay en el colegio? ayud
find the missing length indicated.​
Problem Combine the like terms to create an equivalent expression: y−(−3y) please someone explain to me how to do this?
¿Cuáles son las similitudes entre los dos culturales?
PLEASE HELP WILL GIVE BRAINLEST Analyze the given diagram of the carbon cycle below.An image of carbon cycle is shown. The sun, a cloud, two trees, one on the l