title: C++ boolean array initialization
body: <p>I want to initilize all elements from my 2-dimensional boolean array to false. </p>
  
  <pre><code>size_t n, m;
  cin &gt;&gt; n &gt;&gt; m;
  bool arr[n][m] = {false};
  for(size_t i = 0; i &lt; n; i++){
      for(size_t j = 0; j &lt; m; j++){
          cout &lt;&lt; arr[i][j] &lt;&lt; " ";
      }
      cout &lt;&lt; endl;
  }
  </code></pre>
  
  <p>But i'm getting very confused with the output. For example, if n = 5 and m = 5, i have the following :</p>
  
  <pre><code>0 27 64 0 0
  0 0 0 0 0
  0 0 0 0 0
  0 0 0 0 0
  0 0 0 0 0
  </code></pre>
  
  <p>So, what's wrong with the code?</p>