229k views
4 votes
Write the prototype for a function named showValues. It should accept an array of integers and an integer for the array size as arguments. The function should not return a value.

2 Answers

4 votes

Answer:

void showValues(int [maximum volume],int);

User Besnik Kastrati
by
5.3k points
3 votes

Answer:

void showValues(int * array, int array_size){

int i;

for(i = 0; i < array_size; i++){

printf("%d\\", array[i]);

}

}

Step-by-step explanation:

I am going to write the prototype of a function as a c code.

array is the array as an argument, and array_size is the argument for the size of the array.

void showValues(int * array, int array_size){

int i;

for(i = 0; i < array_size; i++){

printf("%d\\", array[i]);

}

}

User Cwtuan
by
5.4k points