Question: .Write a Cpp code that has the following criteria. Declare an array arr[] which has 15 elements in your main(). I want to give input
.Write a Cpp code that has the following criteria. Declare an array arr[] which has 15 elements in your main(). I want to give input for the first element of the array. The rest of the elements will be the multiple of the fist element (you have to show the calculation inside your code in a function prototype). (10 Points) Example: If the input for the first element is 3.The array will be 3,6,9,12,18, If the input for the first element is 5. The array will be 5,10, 15,20, Print the array with using a function prototype. (10 points) B. While you're passing the array as parameter what you are actually passing(values of the array elements only or the address of the array)?(5 points) Are the values of the array updated in the prototype is going to change when you return to main()? Prove your answer. (5 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
