How can we initialize the structure?
<p>Suppose there is a structure such as:</p>

<pre><code>struct XYZ
{
double a;
double b;
}
</code></pre>

<p>Now we make an object of it </p>

<pre><code>struct XYZ abcd[10];
</code></pre>

<p>and now I am filling this array.</p>

<p>I have to initialize this array because I call this in a loop and it overwrites the previous values.</p>

<p>If it overwrites the previous 5 values by 4 new values then still the 5th one is still there in the array which results in the wrong output.</p>
