title: C: Array initialization requires a brace-enclosed initializer list - simple code
body: <p>I am a complete beginner in C, and I have ran into what I am assuming to be a simple error. I have looked up similar issues online but I cannot find an issue with my code. There is very little and I do not know what the issue is.</p>
  
  <p>Here is the error:</p>
  
  <p><code>C: Array initialization requires a brace-enclosed initializer list</code></p>
  
  <p>and this is my complete code</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
      char walk[10][10] = { 0 };
  
      for (int row = 0; row &lt; 10; row++) {
          for (int col = 0; col &lt; 10; col++) {
              walk[row][col] = '.';
              printf("%c", walk[row][col]);
          }
      }
  
      getchar();
      return 0;
  }
  </code></pre>