title: C uninitialized local variable error
body: <p>New to C still learning.
  The program should start the first time with out needing to be asked to do anything. Then it prompts the user to continue with a "Y/N". I keep errors could anyone tell me why it doesn't work I don't know what to do with the errors that I get from it.</p>
  
  <pre><code>#define _CRT_SECURE_NO_WARNINGS
  #include &lt;stdio.h&gt;
  #include &lt;ctype.h&gt; 
  
  void theQnA(char charIn);
  
  
  int main(void)
  {
      int answerint = 0;
      char charIn;
      char anwser;
  
  
      printf("Enter a character to be examined: ");
      scanf("%c", &amp;charIn);
      theQnA(charIn);
      while (answerint == 0)
      {
          printf("Would you like to run it again? Y/N\n");
          scanf("%c", &amp;anwser);
  
          if (anwser == 'y')
          {
              printf("Enter in another character buddy\n");
              scanf("%c", &amp;charIn);
              theQnA(charIn);
          }
          else (anwser != 'y')
          {
              answerint = (answerint--);
          }
      }
      printf("Goodbye\n");
  
      return 0;
  }
  
  
  void theQnA(char charIn)
  {
      if (islower(charIn))
          printf("You have entered in a lower case letter dude\n");
      else if (isdigit(charIn))
          printf("You enterd in a num man\n");
      else if (isupper(charIn))
          printf("Its upper case man\n");
      else if (ispunct(charIn))
          printf("You entered in a punctuation!\n");
      else if (isspace(charIn))
          printf("You enterd in a whitespace dude\n");
      else
          printf("control char/n");
      return;
  }
  </code></pre>