title: Assigning strings to arrays of characters
body: <p>I am a little surprised by the following.</p>
  
  <p>Example 1:</p>
  
  <pre><code>char s[100] = "abcd"; // declare and initialize - WORKS
  </code></pre>
  
  <p>Example 2:</p>
  
  <pre><code>char s[100]; // declare
  s = "hello"; // initalize - DOESN'T WORK ('lvalue required' error)
  </code></pre>
  
  <p>I'm wondering why the second approach doesn't work. It seems natural that it should (it works with other data types)? Could someone explain me the logic behind this?</p>