title: Get position of a character within a string using a pointer
body: <p>I want to get the position of a character within a string I have by searching for that character in the string using <code>strchr</code> and storing that into a pointer <code>*p</code>.
  So for example:</p>
  
  <pre><code>char v[] = "abcdefghijklmnopqrstuvwxyz", *p;
  p = strchr(v, 'c');
  </code></pre>
  
  <p>In this particular scenario, would the <code>p</code> pointer hold the value <code>2</code> because <code>c</code>'s position is 2 inside of the string? </p>