title: Increment an array element by one
body: <p>(I am new to coding)
  I am trying to replace an array element with itself plus 1, but it does not seem to work. In the following I am trying to replace the 3rd element:</p>
  
  <pre><code>int l=5;
  int histogram[l];
  histogram[l]={0};
  histogram[2] = histogram[2] + 1;
  </code></pre>
  
  <p>It gives me the following error;</p>
  
  <blockquote>
    <p>Expected ';' after expression</p>
  </blockquote>
  
  <p>histogram</p>