Question: Given the following array definitins: double array ( 1 . 2 , 3 . 2 , 4 . 2 , 5 . 2 } double

Given the following array definitins:
double array (1.2,3.2,4.2,5.2}
double array2[4];
will the following statement work? if not, why?
array2=array1;
Nothing is wrong with the statement
The assignment operator cannot be used to assign the contents of one array to another, in a single statement.
it should read array1=array2;
it should read double array4[2];
 Given the following array definitins: double array (1.2,3.2,4.2,5.2} double array2[4]; will

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!