Comparing two Hexadecimal values in C++
<p>I want to compare two hexadecimal(stored in long) 
below is my code</p>

<pre><code>long constant = 80040e14;
if(constant == 80040e14)
    cout&lt;&lt;"Success"&lt;&lt;endl;
else
    cout&lt;&lt;"Fail!!"&lt;&lt;endl;
</code></pre>

<p>In this code flow control always returns to else part, can anyone please suggest how to proceed with the comparison.</p>

<p>Thanks</p>

<p>Santhosha K</p>
