title: Best way to "declare" strings in C
body: <p>I'm new to C world (coming from PHP). I'm playing with strings  (I know that there is no such type of data).</p>
  
  <p>My question is about which is the best way to "declare" strings ?</p>
  
  <p>With some research I came to that.</p>
  
  <pre><code>char str[40] = "Here is my text";
  char str[]   = "Here is my text";
  char *str    = "Here is my text";
  </code></pre>