0

Wrong program

In the third description/program in arreys, the output should be 62 not 42 XD. Please fix it. Because I started thinking that when there is nothing in the [ ] the counting start from 1.

5th Dec 2016, 5:25 AM
Jack Angel
Jack Angel - avatar
1 Answer
+ 4
Well, its not output it is just changing element at index 2. remember array start counting from 0.
5th Dec 2016, 5:29 AM
Aditya kumar pandey
Aditya kumar pandey - avatar