title: When do i have to add a null terminator?
body: <p>I know that i C , you always have to add a null terminator <code>\0</code>  so that the processor knows when a word was ended . </p>
  
  <p>But i get hard time to understand when you have to do it . so for example this code works for me  without it :</p>
  
  <pre><code>  char connectcmd[50]={0};
    sprintf(connectcmd,"AT+CWJAP=\"%s\",\"%s\"",MYSSID,MYPASS);
  </code></pre>
  
  <p>How is that possible ?
  When do you really have to add them ?</p>