What's wrong with the pointers
<p>I am learning pointers in C language. I have written a simple code of pointers using. I have no errors, but the program <code>iz</code> freezing in the middle of execution. What could be the reason for that?</p>

<pre><code>#define _CRT_SECURE_NO_WARNINGS
#include &lt;stdio.h&gt;
#include &lt;string.h&gt; 

void main()   
{
    int i;
    int *i2;
    i2 = &amp;i;

    int z;
    int *z2;
    z2 = &amp;z;   

    int b = 0;
    int *b2;
    b2 = &amp;b;  

    char ch[250];
    //char *ch2;
    //ch2 = &amp;ch;   

    printf("%s\n", " Enter line not longer than 250 characters");
    gets_s(ch); 

    for (*i2 = 0; *i2&lt;10; i2++)
    {
        if (*i2&gt;4)
        {
            *z2 = *i2;
            *b2++;
            break;
        }
    }
    printf("%d%c", *b2, ch[*z2]);
}
</code></pre>