title: Need help understanding strange array syntax
body: <p>I found this bit in a book and I don't get what it does:</p>
  
  <pre><code>int index = 1;
  ...
  getArray() [index=2]++;
  </code></pre>
  
  <p><em>[index=2]++;</em> looks strange to me, but compiles. What's weirder is that it becomes Invalid if <em>++</em> is removed, even though as far as I can tell, <em>++</em> does nothing in this case (the value is always 2). </p>
  
  <p>So, what's the point of the post-increment operator in this case (since it doesn't increment the value), why the brackets and why is the statement legal only if post-inc is added at the end?</p>
  
  <p>Can someone explain what this mysterious syntax is and what it does?</p>