title: C++ How do I set an entire character array to blank spaces?
body: <p>Say I have the following declared variable:</p>
  
  <pre><code>char mychararray[35];
  </code></pre>
  
  <p>and I want to set every character in the array to a blank space...
  How can I do that?</p>
  
  <p>My instructor told me all I had to do was put</p>
  
  <pre><code>mychararray = "";
  </code></pre>
  
  <p>but that didn't work at all...</p>
  
  <p>Am I using an outdated version of Visual Studio (2012), or is this just a bad initialization? If it is the latter, please explain how to make all the characters a blank space.</p>
  
  <p>Thanks in advance!</p>