134k views
0 votes
Which of the following code segments will copy the values of a 5 element array named intOldValues into another 5 element array named intNewValues?. A). intIndex = 1. Do While intIndex <=5. intNewValues = intOldValues. intIndex += 1. Loop. B). intIndex = 0. Do While intIndex < 5. intNewValues = intOldValues. intIndex += 1. Loop. C). For intIndex = 1 To 5. intNewValues = intOldValues. Next intIndex. D). For intIndex = 0 To 4. intOldValues = intNewValues. Next intIndex. . Any feedback would be appreciated

User AMG
by
6.6k points

1 Answer

2 votes
The answers that best support to your question is letter D. For intIndex=0to4 intoldValues=intNewValues NextIndex. I hope you are satisfied with my answer and feel free to ask for more if you have clarification or questions. Have a nice day 
User Randy Burden
by
6.7k points