title: Printing out the value from a Pointer in C
body: <p>In the following example, how would I print out the value in u? I keep on printing out the address.</p>
  
  <pre><code>int example (float f) 
  { 
      unsigned int u = *(unsigned int*)&amp;f;
      printf("The value in u is: %u\n", u);
  }
  </code></pre>
  
  <p>EDIT</p>
  
  <p>I have something like this:</p>
  
  <pre><code>int example (float f) 
  { 
      unsigned int u = *(unsigned int*)&amp;f;
  
      if((u&amp;u) &amp;&amp; u != MASK) {
  
       printf("The value in u is: %u\n", u);
  
       printf("The address in u is: %u" , u);
      }
  }
  
  int main ()
  {
      example(3);
      return(EXIT_SUCCESS);
  }
  </code></pre>
  
  <p>The problem that I have is when I try to check and print out the value of 'u'.
  I can't seem to get it to print out.</p>