Kizspy | Question: 34
(Choose 1 answer)
Which of the following correctly represents the updated array after the execution of the below code?
int a[] = {1, 2, 3, 4, 5};for (i = 2; i < 4; i++){a[i] = a[i + 1];}
A. {1, 2, 4, 5, 5}
B. {1, 2, 4, 5}
C. {1, 3, 4, 5}
D. {1, 2, 3, 4}