title: How does wcout work?
body: <p>I noticed a weird problem while using wcout in a console application.</p>
  
  <p>After calling a certain function, the rest of the wcout calls did not work at all. i.e. the output statements did not appear on the console.</p>
  
  <p>I noticed that in the function, I had used a wide character array which was never assigned.</p>
  
  <pre><code>WCHAR wArray[1024];
  wcout&lt;&lt;wArray&lt;&lt;endl;
  </code></pre>
  
  <p>It was after this call, all the other wcout's stopped working. </p>
  
  <p>So, I was just curious to know what makes wcout different from cout, and why this problem occured,</p>