infinite while loop even after increment is declared : <p>Why this code print 10 indefinitely even if the increment of i is declared</p>

<pre><code>#include &lt;stdio.h&gt;
int main()
{
    int i;
    while (i = 10)
    {
        printf("%d\n",i);
        i = i+1;//according to me this will increase the value of i from i = 10 to 11 
    }

    return 0;
}
</code></pre>

<p>the expected outcome according to me is 10 but only 1 time as the value of i will change to 11 and the loop will no execute.</p>
