0
What is the output of the code?
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.
0
Do it yar?