title: Clearing out a char array best scenario - memset or not?
body: <p>In my current code I have something like this</p>
  
  <pre><code>while(true) //Infinite loop
  {
     char buff[60];
     .....
     ....
  }
  </code></pre>
  
  <p>I wanted to know what would be better performance wise.</p>
  
  <ol>
  <li>Declaring the char buff (that will hold strings that contain linefeeds and new line character) before entering the infinite loop and then using <code>memset(buff, 0, 60);</code> or</li>
  <li>Keeping it the way it is. Does memset affect performance ?</li>
  </ol>
  
  <p><strong>Note:</strong></p>
  
  <p>My requirement is that I need to have the <code>char</code> array totally clean everytime the loop restarts.</p>