Question: Consider the function definition and array declarations. Which are incorrect calls to the function make _ 2 ? Why? ( 2 correct ) ( In

Consider the function definition and array declarations. Which are incorrect calls to the function make_2? Why? (2 correct)
(In considering this code, you are to ignore the a) b), and so on, at the start of the lines, and consider that this code is to be embedded in a complete and correct program.)
void make_2( int a[], int size )
{
for (int i =0; i < size; i++)
a[i]=2;
}
int array1[20];
Group of answer choices
"Hey, make_2, come change array1. Its size is 20."
//A declaration for parts e) through h).
int array2[50];
make_2( array2[5],50);
make_2( array, 10);
>>>>>replace array with array1 two places
make_2( array, 30);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!