storing value Turbo C++
<p>I am currently trying to get my program to store a value so that it can display that value whenever there is an error. Here is my program :</p>

<pre><code>void function()
{
    float abc[2];
    int i = 0;
    if ( i/2 != 0 ) 
    { 
      i++; 
      abc[0] = 1; 
    }
    abc[1] = abc[0];
    cout &lt;&lt; abc[1];
}
</code></pre>

<p>Practically, my program keeps calling this function until I exit it, so it will keep updating my program and show me <code>abc[1]</code>. What I want is when the condition of the <code>if</code> statement is not met, <code>abc[1]</code> will display the previously known value of itself. How do I do it?.</p>
