Segmentation fault,C++,g++,
<p>I have this simple program, when I run this program, I get segmentation fault, I can not 
recognize where is my mistake. any help welcomed.(segmentation fault for Di>=27). The point
is that when I remove function immediately segmentation fault disappears. Or when I transform the function to a void function. I know there is a leak memory because not uses delete operator,
it causes leak memory,but easily is not responsible for segmentation fault(This leak memory is very far to produce segmentation fault).for simplicity I didn't use delete operator.</p>

<pre><code> #include &lt;iostream&gt;
    #include&lt;complex&gt;
    using namespace std;
    const int Di=27;
    typedef struct {
         complex&lt;double&gt; Matrix[Di][Di][Di][Di];

        } O;

    O initializing(int );

    int main()
    {
    O * Operator=new O[1];
    int p;
    int n;
    Operator[0]=initializing(n);
    cout&lt;&lt;"hi";
    return 0;

    }



O initializing(int  point)
{
int i,j,m,n;
O *Operator=new O[1];
for(i=0;i&lt;Di-1;i++)
    for(j=0;j&lt;Di-1;j++)
        for(n=0;n&lt;Di-1;n++)
            for(m=0;m&lt;Di-1;m++)
            Operator[0].Matrix[i][j][m][n]=2;

            cout&lt;&lt;Operator[0].Matrix[Di-1][Di-1][Di-1][Di-1];
return Operator[0];


}
</code></pre>
