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

if you forget to bring the book back to the library, you will pay a fine. is this a negation, conjunction, disjuntion, conditional or biconditional?
What was the effect of tyranny's role in ending the rule of greek aristocrats?
Researchers control factors that might influence a dependent variable by means of
What is a Gold-leaf electroscope used for
A upright sprinkler head is different from a pendant sprinkler head because
Which level of government is currently “in charge” of planning controls for california property?
a estação reprodutiva das plantas do cerrado é caracterizada pelo florescimento de muitas espécies.Relacione a presença das flores com a estação reprodutiva.
If a is divisible by​ b, then a divided by ÷b has a remainder of
How were christian and muslim states governed in the early middle ages?
The part of the data bus that runs between the microprocessor and RAM is called the______bus