title: how to print a char array using a pointer only? (we don't know the size of the array)
body: <p>I have a function with three parameters: a pointer to a character array (also known as a C-String), and two pointers to specific characters (we will assume that they point to characters in the C-String).</p>
  
  <pre><code>void stringPointerOperation(char* str, char* firstPtr, char* secondPtr)
  {
  
   cout &lt;&lt; str &lt;&lt; endl;
   cout &lt;&lt; "First character=" &lt;&lt; *firstPtr &lt;&lt; endl;
   cout &lt;&lt; "Second character =" &lt;&lt; *secondPtr &lt;&lt; endl;
  
   }
  </code></pre>
  
  <p>Questions:</p>
  
  <ol>
  <li>How do I print out the characters from firstPtr to the end of str?</li>
  <li>How do I find out how many characters are between firstPtr and secondPtr?</li>
  </ol>