Ask Question
19 October, 23:22

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?

+3
Answers (1)
  1. 20 October, 02:19
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “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? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers