Ask Question
24 September, 03:31

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.

+4
Answers (1)
  1. 24 September, 03:45
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers