title: Size of a char in C
body: <p><strong>I have:</strong> <br></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
      char ch[] = "Hello";
      char wd[] = "World";
      char ex[] = "!";
  
      printf("The size of a char: %ld\n",sizeof(char));
      printf("The size of ch[]: %ld\n",sizeof(ch));
      printf("The size of ex[]: %ld\n",sizeof(ex));
      printf("The size of wd[]: %ld\n",sizeof(wd));
  
      return 0;
  }
  </code></pre>
  
  <p><strong>Which yields:</strong> <br></p>
  
  <pre><code>The size of a char: 1
  The size of ch[]: 6
  The size of ex[]: 2
  The size of wd[]: 6
  </code></pre>
  
  <p><strong>My question:</strong> Since the size of a char is 1 byte,why isn't the size of ch[ ]=5 bytes? Since it has 5 characters <em>(H,e,l,l and o)</em><br>
  The same goes with wd[ ] and ex[ ]. What's going on here?<br>
  Sorry if this is a no-brainer,but I am novice in C. </p>