Why does this code result in 0?
<p>I have the following code</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdint.h&gt;
using namespace std;
int main(){
    int x;
    cin&gt;&gt;x;
    uint32_t Ex;
    Ex=(x&lt;&lt;1)&gt;&gt;24;
    cout&lt;&lt;Ex&lt;&lt;endl;
    return 0;
}
</code></pre>

<p>but it gives 0 for any value of x?</p>

<p>My task is the following:</p>

<pre><code>Computation of the biased exponent Ex of a binary32 datum x.
</code></pre>
