Question: With the following declaration: int [ ] points = {300, 100, 200, 400, 600}; the statement points [4] = points[4 2]; will a. replace

With the following declaration:

int [ ] points = {300, 100, 200, 400, 600};

the statement points [4] = points[4 – 2]; will

a. replace the 400 amount with 2

b. replace the 300 and 600 with 2

c. replace the 600 with 200

d. result in an error

e. none of the above

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 Systems Analysis Design Questions!