title: Warning - Initialization makes pointer from integer without a cast
body: <p>I found similar questions but I don't think they applied to my specific problem, so I'm sorry if they do!</p>
  
  <p>I'm learning C as a first year CS student and trying to make a quiz in C, but I can't get anywhere because every time I try to compile to see if it's working I get the message "warning: initialization makes pointer from integer without a cast."</p>
  
  <p>I've worked out all of the syntax errors (I think) but I just for the life of my can't figure this out. I've gone through all of my lecture slides but none of them cover this.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;scc110.h&gt;
  
  int player1score, player2score;
  char* answer1, answer11, answer111, answer2, answer22, answer222;
  
  int geography()
  {
    printf ("The first category is geography. Note: Player 1 always goes first.\n");
  
    char* answer1 = AskForStringAndWait("Player 1: What is the capital of India?");
    if (strcmp(answer1,"New Delhi")==0)
      player1score++;
  
    char* answer2 = AskForStringAndWait("Player 2: What is the capital of Iran?");
    if (strcmp(answer2,"Tehran")==0)
      player2score++;
  
    char* answer11 = AskForStringAndWait("Player 1: Name a country that borders France that  isn't Germany, Italy or Spain.");
    if (strcmp(answer11,"Luzembourgh")==0 ||
        strcmp(answer11,"Switzerland")==0 ||
        strcmp(answer11,"Belgium")==0)
      player1score++;
  
    char* answer22 = AskForStringAndWait("Player 2: Name one of the main British Channel Islands.");
    if (strcmp(answer22,"Guernsey")==0 ||
        strcmp(answer22,"Jersey")==0)
      player2score++;
  }
  </code></pre>