title: Empty character constant in C
body: <p>I've tried changing it to double quotes, but this is wrong. I also tried figuring out what it means, but the compiler keeps giving me the same error.</p>
  <blockquote>
  <p>[Error] empty character constant</p>
  </blockquote>
  <h3>Code</h3>
  <pre class="lang-none prettyprint-override"><code>#include &lt;stdio.h&gt;
  
  main()
  {
      int c, i, nwhite, nother;
      int ndigit[10];
      nwhite = nother = 0;
      for(i = 0; i &lt; 10; i++)
          ndigit[i] = 0;
  
      while ((c = getchar()) != EOF)
          if(c &gt;= '0' &amp;&amp; c &lt;= '9')
              ++ndigit[c - '0'];
          else if (c == '' || c == '\n' || c == '\n')
              ++nwhite;
          else
              ++nother;
  
      printf(&quot;digits = &quot;);
  
      for(i = 0; i &lt; 10; i++)
          printf (&quot;%d&quot;, ndigit[i]);
  
      printf(&quot;, white space = %d, other = %d \n&quot;, nwhite, nother);
  }
  </code></pre>