title: In C, can I initialize a string in a pointer declaration the same way I can initialize a string in a char array declaration?
body: <p>Do these two lines of code achieve the same result? If I had these lines in a function, is the string stored on the stack in both cases? Is there a strong reason why I should use one over the other, aside from not needing to declare the null terminator in the first line of code?</p>
  
  <pre><code>char  s[] = "string";
  char* s   = "string\0";
  </code></pre>