Unsigned and signed comparison
<p>Here is very simple code,</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
int main() {
    unsigned int u=10;
    int i;
    int count=0;
    for (i=-1;i&lt;=u;i++){
        count++;
    }
    cout&lt;&lt;count&lt;&lt;"\n";
    return 0;
}
</code></pre>

<p>The value of count is 0. Why?</p>
