title: using sizeof() to initiate an array
body: <p>I just found out that I could use sizeof() to initiate an array but not strlen(), why is this?</p>
  <pre><code>char str[] = &quot; @@ Aab, ~bccdD&gt;&gt; e&quot;, str2[sizeof(str)]={-1};
  </code></pre>
  <p>if I use strlen(), it would give me this error, but shouldn't the return value of sizeof be a variable too?</p>
  <blockquote>
  <p>error: variable-sized object may not be initialized
  char str[] = &quot; @@ Aab, ~bccdD&gt;&gt; e&quot;, str2[strlen(str)]={-1};</p>
  </blockquote>