1. Write the definition of a function printArray , which hastwo parameters. The
ID: 3615719 • Letter: 1
Question
1. Write the definition of a function printArray , which hastwo parameters. The first parameter is an array of int s andthe second is an int , the number of elements in the array.The function does not return a value. The function prints out eachelement of the array, on a line by itself, in the order theelements appear in the array, and does not print anything else.2. Assume that an array of int s named a has beendeclared with 12 elements. The integer variable k holds avalue between 0 and 6. Assign 15 to the array element whose indexis k .