to check the end of arrays
<pre><code>main()
{
    char buff[10];

    int a;

    for(int i=0; i&lt;10;i++)

    {

        cin &gt;&gt; buff[i];

        a=sizeof(buff[i]);

        if(a==10)

            cout &lt;&lt; "full";

    }

    for(int i=0; i&lt;10;i++)

        cout &lt;&lt; buff[i]&lt;&lt;"\n";

}
</code></pre>

<p>why des the control never comes to  cout &lt;&lt; "full"; i am new to coding...when i do dry run it works fine </p>
