title: Better way for making an array for Connect 4?
body: <p>I am having more trouble with these array as it seems I have limited understanding on building and utilizing an array. How should I pass a specific cell to an array? In this example I am trying to pass the chip value of a specific column that occupies row 8. How would you manipulate the value of a 2D array cell based on the location of the cell as shown below?</p>
  <p>Below is the link to a compiler I have been using online, I also used a minimalist portion of the code to illustrate my overall goal. I am trying to push the
  <a href="https://onlinegdb.com/mB1kiOtOBM" rel="nofollow noreferrer">https://onlinegdb.com/mB1kiOtOBM</a></p>
  <pre><code>int row;
  int col;
  int array [row][col];
  int const chip = 1;
  
  while(left == 1)
  {
    row = 8;
    for(int col = 8; 8 &gt; col &gt; 0; col ++)
     {
       chip = array [row][col];
     }
  }
  </code></pre>