Question: Question 1 2.5 pts When passing an array to a function: You always need to put an ampersand&) before the name so it will be


Question 1 2.5 pts When passing an array to a function: You always need to put an ampersand&) before the name so it will be passed by reference The ampersand isn't necessary, arrays are always passed by reference. Arrays can only be passed by value. Arrays cannot be passed to functions. With arrays you use a double ampersand(&E) Question 2 2.5 pts What will the following code do? const int SIZE 5 double x/SIZE] forlint i 2; i SIZE:i++) xlil 0.0 Each element in the array is initialized to 0.0 Each element in the array, except the first, is initialized to 0.0 Each element in the array, except the first and the second, is initialized to 0.0 The second statement above doubles the size of x An error will occur when the code runs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
