title: sprintf access violation
body: <p>I have a problem with the following code:</p>
  
  <pre><code>for(i = 0;(i - 1)&lt; n;i++)
  {
  char* b;
  sprintf(b, "%d", i);
  }
  </code></pre>
  
  <p>It compiles fine but when I run it it give me the infamous "0XC0000005 Access Violation" error. I have tried setting b to NULL, "", "0", 0 and a bunch of other stuff but then I get the "0XC0000005 Access Violation" error or "Expression: string != NULL. Any help would be appreciated!</p>