title: How to compare words on C
body: <p>I have no idea why this code is not working. Could someone please help me? (I want a simple version-fix if it's possible, because I've only started to study C a couple of weeks ago.)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  
  int main ()
  {
      char *name="alina";
      char *input;
      printf ("what's your name? \n");
      scanf ("%s",&amp;input);
      if (input=="alina")
          printf("your name is %s good job!\n ",&amp;name);
      if (input!="alina")
          printf("are you sure? open the program again and insert the correct name");
      while (1);
  }
  </code></pre>