Hello eveyrone, this is my first time looking at the C++ programming language and I have a question.

The following code

Code:
for(i=0; i!=4; i++){
a[2i]=b[i]+i;
}
In understand that in this for loop that i starts at 0 and increments by 1 until it is 4, however I am not sure what is going on inside of it.

does it mean

a[2(1)]=b[1]+1;
a[2(2)]=b[2]+2;
.
.
.
.
a[2(4)]=b[4]+4;

Stop (or does it stop at 3??)


does a[2(2)]=b[2]+2; mean that the value of the 8th element in array a = the value of the second element in array b plus 2?


Thank you for your help.


Also I am trying to convert this into MIPS assembly language, does anyone know any good forums to ask for MIPS help??