12th Feb 2019, 12:59 PM
dongam kalyan
dongam kalyan - avatar
2 Answers
+ 3
The output is zero since you have declared an empty array with 6 elements but the i variable is iterating till 5th element only. If you will replace 5 by 6 in the condition of for loop, u will get 8 at answer.
12th Feb 2019, 1:08 PM
Arushi Singhania
Arushi Singhania - avatar
0
Do it yar?
12th Feb 2019, 1:00 PM
dongam kalyan
dongam kalyan - avatar