Consider the following code snippet
1 const int N = 5;2 double pops[N] = {23,12};3 for(int i=0; i<=N;i++){4 cout << pops[i] << endl; 5 }
Which of the following statements is true about line 2 and line3?
Line 2 – ____________________
Line 3 – ____________________
Choose answer from:
A. should have started the loop with i=1.
B. should have initialized all 5 values.
C. should decrement counter i, rather than increment it.
D. has an array bounds error. Counter i should be strictly lessthan N.
E. is correct
F. should have used type int for array pops
G. should have used a double N for the size of array
OR
OR