Question: If you declare an array as int [ , ] anArray = new int [5, 3]; you can double the value stored in anArray[2, 1]
If you declare an array as int [ , ] anArray = new int [5, 3];
you can double the value stored in anArray[2, 1] with the statement:
a. anArray[2, 1] = anArray[5, 1] * 2;
b. anArray = anArray * 2;
c. anArray[2, 1] *= anArray[2, 1] * 2;
d. anArray[2, 1] *= 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
