unsigned int value not giving correct result
<p>following program should print "error" but its printing success.why?</p>

<pre><code>#include&lt;iostream&gt;
using namespace std;
int main()
{ 
   unsigned int a;
   a=-10;

   if(a == -10)
        cout &lt;&lt; "success" ;
   else
        cout &lt;&lt; "error" ;

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