title: clearing a char array c
body: <p>I thought by setting the first element to a null would clear the entire contents of a char array.</p>
  
  <pre><code>char my_custom_data[40] = "Hello!";
  my_custom_data[0] = '\0';
  </code></pre>
  
  <p>However, this only sets the first element to null.</p>
  
  <p>or</p>
  
  <pre><code>my_custom_data[0] = 0; 
  </code></pre>
  
  <p>rather than use <code>memset</code>, I thought the 2 examples above should clear all the data.</p>