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

Match the words to the correct descriptions. Have different properties depending on the number of protons. The atoms take on new properties when they bond toget
Can an acid be dilute and strong at the same time? Explain
I need help with this question 7.89 square root X12+65=
how many possible values will an eight bit audio sample have
can 7in and 1lb be in the same unit
1 Acupuncture is one of the oldest, most commonly used medical procedures in the world. Originating in China more than 2,000 years ago, acupuncture began to bec
Which word or phrase indicates the wind strength in the article? (1 Point) a. "We heard the warnings and went right to the basement" b. "I lost most of the shin
Where are fossils found?​
Anyone here know a thing about logic truth table?
Film directors generally earn more money than theater directors. True False