173k views
2 votes
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.

User Putxe
by
8.5k points

1 Answer

5 votes

Answer:

The prototype for the function is written below:-

void printArray(int [],int);

Step-by-step 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.

User Blubberbernd
by
8.7k points