1) What '+=' does is equal the left hand value (of the operand) to the 'left hand value + the right hand value'.
Therefore you get:
result = 0;
result += 2; so result equals 2
result += 4; so result already has a value of 2, now 4 is added to it
result += 6; so result already has a value of 6, now 6 is added to it
etc...
2) If you tak away the '+' sigin you are just equaling 'result' to that element of the array. As 10 is the lsat element, that is your final answer.
result += array[n] is the same as result = result + array[n]array[n] returns the (n-1)th element of the array so (as the value of n changes in the loop) it will result the sum of all array elements.
if you remove the +, it will assign result to the (n-1)th element of the array discarding the previous value. So at the end of the loop result would be equal to array[4]