declared variable of type double gets automatically initialized to inf : <p>I am running my code with gcc. I have a function in which I declare a variable X1 which is initialized to 'inf'.
</p>

<pre class="lang-cpp prettyprint-override"><code>function(double nu, void *params) {
struct func_params *part= (struct func_params *)params;
double result;
*commands*
if (condition){
        double wb,X1;
        printf("inside if X1 %e \n",X1);
    }
return result;
</code></pre>

<p>this code is returning "inside if X1 inf". I never had that issue and I didn't change anything to the code...Any idea what it could be?</p>
