title: String and ascii values
body: <p>In this piece of code if i run a for loop to know elements stored inside the array <code>c</code> I get output as <code>1 1 1 0 0 0 0 1 0 0</code>.</p>
  
  <p>The input is <code>abc</code>. Why it does it give <code>1 1 1</code> instead of <code>0 1 2 0 0 0 0 0 0</code>?</p>
  
  <pre><code>int c[26]={};
  cin &gt;&gt; s;
  len = s.length();
  for(int i = 0 ; i &lt; len ; i++ ){
      c[s[i] - 'a'] ++ ;
  }
  </code></pre>