title: How to convert int to char[] with sprintf() if char is pointer and the int not?
body: <p>I likely don't understand the <code>sprintf</code> function.</p>
  
  <pre><code>char s[30];
  int i;
  
  scanf("%d",&amp;i);
  sprintf(s,i); /*-&gt;warning: makes pointer from int*/
  </code></pre>