title: Segmentation fault on creating matrices
body: <p>I was practicing on c++ on some tutorials and I encountered on a tutorial that creates matrices, I wanted something more from it and I modified it, I dont know matrices at all cuz I didnt learn them yet at school but this code below sometimes works sometimes not.<br />
  When it doesn't work I usually get: Segmentation fault.<br />
  why does this happen ?<br /></p>
  
  <p>before it happened everytime but after i gave a 0 value to variable line and member on the beginning it doesnt happen anymore, but still if I type exc<br />
  Line: 10<br />
  Member: 9<br />
  <br />
  it gives: <br /><br />
      1    1    1    1    1    1    1    1    1<br /><br>
      1    2    3    4    5    1    7    8    9<br />
  Segmentation fault<br />
  and stopes.<br />
  Can anyone explain me this ?<br />
  thank you !</p>
  
  <pre><code> #include &lt;iostream&gt;
   #include &lt;iomanip&gt;
   using namespace std;
  
   int main()
   {
       int line=0,member=0;
       int i,j,matrice[line][member];
  
       cout &lt;&lt; "\nLine: ";
           cin &gt;&gt; line;
  
       cout &lt;&lt; "Member: ";
       cin &gt;&gt; member;
  
       cout &lt;&lt; "\nCreated Matrice: \n" &lt;&lt; endl;
  
           for (i=0;i&lt;line;i++)
           {
               for (j=0;j&lt;member;j++)
               {
                   matrice[i][j]=i*j+1;
                   cout &lt;&lt; setw(5) &lt;&lt; matrice[i][j];
               }
               cout &lt;&lt; "\n\n";
           }
   return 0;
   }
  </code></pre>