Arrays

I have declared an array and set values to it . for eg: arr[0]=1,arr[1]=12 etc.say for 5 elements. When i print the arr[0], i get 1 and when i print 0[arr], i get the value 1. same thing happens for arr[1] and the rest of the array elementns. What is happening here, could anyone please explain?
since the array operator leads to addition it is commutative
Last edited on
Topic archived. No new replies allowed.