title: Dev C++ gives different result in case of pointer address
body: <p>I have a following set of codes </p>
  
  <pre><code>int main(){
     int x = 36;
     int const * p1;
     p1 = &amp;x;
  
     printf("Values at p1: %d\n", *p1); 
     p1=0;
  
     printf("Addresses pointed to by p1: %p ", &amp;p1); 
     return 0;
  }
  </code></pre>
  
  <p>gives </p>
  
  <pre><code>Addresses pointed to by p1 gives 0028FF480
  
     int main(){
     int x = 36;
     int const * p1;
     p1 = &amp;x;
  
     printf("Values at p1: %d\n", *p1); 
     p1=0;
  
     printf("Addresses pointed to by p1: %p ", p1); 
     return 0;
     }
  </code></pre>
  
  <p>Addresses pointed to by p1 gives 00000000</p>
  
  <p>Why such a difference..?I thought both will give me same value.</p>