I found this bit in a book and I don\'t get what it does:
int index = 1; ... getArray() [index=2]++;
[index=2]++; looks strange to me,
Of course it will be invalid, you're not doing anything with it.
getArray() [index=2]++;
For demonstration i will switch getArray() with myArray which has { 100, 200, 300, 400 }. Than it's equals to:
getArray()
myArray
{ 100, 200, 300, 400 }
myArray[2]++;
myArray[2] will now output: 301 And index will be: 2
myArray[2]
index