title: Sprintf & Scanf
body: <p>I've been trying to figure out sprintf and scanf using the examples in this article:  <a href="https://www.udemy.com/blog/sprintf-c/#respond" rel="nofollow">https://www.udemy.com/blog/sprintf-c/#respond</a></p>
  
  <pre><code>// example 1
  #include &lt;stdio.h&gt;
  
  int main() {
     char *stringa = “We Are Dismantling a String”;
     char *one, *two, *three, *four, *five;
     sscanf(stringa, “%s %s %s %s %s”, one, two, three, four, five);
  
     return(0);
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>//  Example 2
  #include &lt;stdio.h&gt;
  
  int main() {
     char *stringa[30];
     int *fingers = 5;  
     sprintf(stringa, "Number of fingers making up a hand are %f", fingers); 
     puts(stringa);
  
     return(0);
  }
  </code></pre>
  
  <p>I can't get the variable to initialize in example 1 and example 2 comes back with a whole list of errors.  I could use some help figuring out why these lines of code don't work.  </p>