title: printf not working (pointers)
body: <p>So I have been learning how to work with pointers and this simple program won't run and I can't figure out what is wrong
  I think the problem is this line of code:</p>
  
  <pre><code>printf("Address of pointer variable = %x \n",pointer_p);
  </code></pre>
  
  <p>I also tried with <code>printf("Address of pointer variable = %x \n",&amp;pointer_p);</code> still no results.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main() {    
      int val = 30;
      int *pointer_p;
      pointer_p = &amp;val;
      //shows the address of val (hexadecimal)
      printf("Address of val = %x\n", &amp;val);
      printf("Address of pointer variable = %x\n", pointer_p);
      //shows the value of this address
      printf("Value of pointer = %d\n", *pointer_p);
  
      return 0;
  }
  </code></pre>