title: Find the size of a string pointed by a pointer
body: <pre><code>#include &lt;stdio.h&gt;
  
  int main ()
  {
      char *ptr = "stackoverflow"
  
  }
  </code></pre>
  
  <p>Is there any way to find the length of stackoverflow pointed by ptr, as sizeof ptr always gives 4</p>