title: How to assign 1D array to a 2D array?
body: <p>I have a 1D array <code>A[3]</code> &amp; a 2D array <code>B[4][3]</code>. I want to assign the array <code>A[3]</code> to one of the rows of array <code>B[4][3]</code>. How to do it correctly?  </p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  void main()
  {
     int A[3]={1,2,3};
     int B[4][3]={0};
     int row_select=2;
  
     B[row_select][] = A;
  }   
  </code></pre>
  
  <p>But this assignment doesn't work. I don't want to assign element by element using a for loop. I want to do it in one statement.</p>