Ask Question
24 October, 15:29

To pass an array to a function, specify

a) the name of the array without any brackets.

b) the name of the array preceded by an empty pair of brackets.

c) the name of the array followed by a pair of brackets including the size of the array.

d) the name of the array followed by a pair of brackets including a number one less than the size of the array.

+1
Answers (1)
  1. 24 October, 15:59
    0
    B

    Explanation:

    It really depends on the programming language, this answer is based on object oriented languages such as C/C++.

    You pass an array to a function by specifying the name of the function and an empty pair of square brackets in the function call.

    In the function header, body and prototype however, in addition to this, you specify the variable type of the function e. g whether int, float, bool etc. before the name of the function.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “To pass an array to a function, specify a) the name of the array without any brackets. b) the name of the array preceded by an empty pair ...” in 📘 Social Studies 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