title: Recursive Function of Characters To Binary (ASCII)
body: <p>I bought a Programming book at a yard sale for $2 because I've always wanted to learn how to code but don't have the money and resources for school. I've gotten through the first few chapters just fine, but I've also had the solutions to the problems I was working on. But the chapter is missing a few of the pages after the chapter summary when they start listing problems. I was wondering if you guys could help me out. </p>
  
  <p>Here is the problem. Note: Needs to use a recursive function. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  void binaryPrinter(int value, int *numberOfOnes);
  void print(char c);
  
  //You do not need to modify any code in main
  int main()
  {
      char value;
      int result = 1;
  
      while(result != EOF)
      {
          result = scanf("%c",&amp;value);
  
          if(result != EOF &amp;&amp; value != '\n')
          {
              print(value);
          }
      }
  }
  
  //@hint: This is called from main, this function calls binaryPrinter
  void print(char c)
  {
  
  }
  
  //@hint: this function is only called from print
  void binaryPrinter(int value, int *numberOfOnes)
  {
  
  }
  </code></pre>