title: menu function error: comparison between pointer and integer [enabled by default]
body: <p>I have this function which is a menu. After compiling, the following error keeps showing up: error: comparison between pointer and integer [enabled by default].  why is this happening?</p>
  
  <pre><code>    char choice;
  
      printf ("Welcome to the Customer menu! \n");
      printf ("Please select option from below\n");
      printf ("a. Add customer\n");
      printf ("b. Modify customer\n");
      printf ("c. List customers\n");
      printf ("d. Go back to main menu");
  
      while ((gets(&amp;choice)) != 'q')
              {
                  if (choice == '\n')
                      continue;
                  switch (choice)
                  {
  
          case 'a' : add_customer();
                     break;
          case 'b' : printf ("products_main ()");
                     break;
          case 'c' : printf ("orders_main ()");
                     break;
          default : printf ("Invalid input. Please enter an option from the above menu\n");
                    continue;
  
                  }
  
                  printf ("END PROGRAM");
  </code></pre>
  
  <p>Thank you!!</p>