title: initializing of a struct of whose members are array of another struct
body: <p>I have</p>
  <pre><code>#include &lt;iostream&gt;
  
  typedef struct coordinate{
      double x;
      double y;
  }point;
  
  typedef struct sc_cell{ // single cell
      point sc[4];
  }cell;
  
  typedef struct sb_body { // for single body
      point sb[4];
  }body;
  
  using namespace std;
  
  int main()
  {
      body r_plate = {};
      
      r_plate.sb[0] = { 0,0 };
      r_plate.sb[1] = { 5,0 };
      r_plate.sb[2] = { 5,1 };
      r_plate.sb[3] = { 0,1 };
  
  
      return 0;
  }
  </code></pre>
  <p>Here, in <strong>main</strong> I have initialized the <strong>r_plate</strong> with 4 points and took 4 lines. is there any way to initialize it in a single line?</p>
  <p>Something like <code>r_plate = { { 0,0 },{ 5,0 },{ 5,1 },{ 0,1 } }</code>(this shows error too many initializer values)</p>