title: error in running a simple C code in visual studio
body: <p>I wrote a simple C code for displaying a matrix in visual studio but it gives the following errors:</p>
  
  <p><strong>-Error    1</strong> error C2085: 'main' : not in formal parameter list</p>
  
  <p><strong>-Error    2</strong> error C2143: syntax error : missing ';' before '{'</p>
  
  <p><strong>-Error    3</strong> error C2084: function 'void print_matrix(float (*)[3])'</p>
  
  <p>as I'm new in C language I don't know where is the problem and how to cope with it.
  Thanks for any help</p>
  
  <p>here is the written code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void print_matrix (float a [3][3])
  
  void main(void)
  {
      float p [3][3] = { {1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0} };
  printf("\nMatrix 1:\n");
  print_matrix(p);
  }
  
  void print_matrix(float a [3][3])
  {
      int ii,jj;
          for (ii=0;ii&lt;3;ii++){
              for (jj=0;jj&lt;3;jj++){
                  printf("%f\t",a[ii][jj]);
      }
              printf("\n");
      }
  }
  </code></pre>