title: C Program- How do you find the index of any character in a string?
body: <p>For example, in a string, you'll be asked to find and print the index of a capital character:</p>
  <pre><code>char str[100] = &quot;helloWorld&quot;;
  </code></pre>
  <p>the capital letter is found at index <code>5</code> so <code>printf(&quot;Index of capital letter: Index %d&quot;)</code> in which <code>%d</code> should be <code>5</code></p>
  <p>How do you create a code to print the index?</p>