Ask Question
6 September, 22:26

Write a statement that declares a prototype for a function printArray, which has two parameters. The first parameter is an array of element type int and the second is an int, the number of elements in the array. The function does not return a value.

+2
Answers (1)
  1. 7 September, 01:30
    0
    The prototype for the function is written below:-

    void printArray (int [], int);

    Explanation:

    The prototype of the function is written above. Since the function does not return a value so it has to be of type void. Then following is the name of the function. Following that the arguments in the parenthesis. We need not to provide the name of the arguments we just have to define it's type. So for the array we have to just write int [] and for integer variable just int.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a statement that declares a prototype for a function printArray, which has two parameters. The first parameter is an array of element ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers