Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help with the code needed to answer the following codelabquestions... Tha

ID: 3609819 • Letter: P

Question

Please help with the code needed to answer the following codelabquestions... Thanks in advance!

1) Write a statement that declares a prototype for afunction printArray , which has twoparameters. The first parameter is an array of ints and the second is an int , thenumber of elements in the array. The function does not return avalue.

2) Write the definition of a function printArray , which has two parameters. The firstparameter is an array of int s and thesecond is an int , the number of elements inthe array. The function does not return a value. The functionprints out each element of the array, on a line by itself, in theorder the elements appear in the array, and does not print anythingelse.

Explanation / Answer

1) void printArray(int s[], int number_of_elements); 2) void printArray(int s[], int number_of_elements) { for (int counter=0;counter