Question: If you declare an array as int [ ] anArray = new int [5]; you can double the value stored in anArray [2] with the
If you declare an array as int [ ] anArray = new int [5];
you can double the value stored in anArray [2] with the statement:
a. anArray [2] = anArray [5] * 2;
b. anArray = anArray * 2;
c. anArray [2] *= anArray [2] * 2;
d. anArray [2] *= 2;
e. none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
