title: Assign array field within struct
body: <p>recently i started working on C++ code and i was trying to communicate with an external library which has a struct defined as follows</p>
  <pre><code>struct StudentsInformation {
      int student_count[10];
      double total_marks[10];
      double section_marks_average;
      double class_marks_average;
  };
  </code></pre>
  <p>I was trying to create a object for this struct as follows in a separate class</p>
  <pre><code>int count[10] = {1, 2, 3, 4, 5, 1, 2, 3, 4, 5}; 
  double marks[10] = {10.0, 20.0, 30.0, 40.0, 50.0, 10.0, 20.0, 30.0, 40.0, 50.0};
  
  StudentsInformation stuInfo = { count, marks, 68.8, 56.7 };
  </code></pre>
  <p>Compiling this provides following error</p>
  <blockquote>
  <p>Cannot initialize an array element of type 'int' with an lvalue of
  type 'int [10]'</p>
  </blockquote>
  <p>not sure what i'm doing wrong.</p>