title: What does using array index like this [0,1,2] means?
body: <p>How can an array have an index like [0,1,2]?<br>
  And why is [0,1,2]=[2] <br>
  Code:</p>
  <pre><code>int main(){
      int a[]={1,2,3,4,5};
      a[0,1,2]=10;
      for(int i=0;i&lt;5;i++)
          printf(&quot;%d &quot;,a[i]);
      return 0;
  }
  </code></pre>
  <br>
  Output:<br>
  1 2 10 4 5