title: Can we pass pointers in printf?
body: <p>In the following code, we pass pointer to a string and it works fine but it doesn't works for pointer to an integer. I want to know why ?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main(){
      char *astring = "afdv";
       printf("%s",astring);
      int a;
      a = 1000;
      int *ptr = &amp;a;
      printf("\n%d", ptr);
  }
  </code></pre>