title: invalid conversion from `const char*' to `char*'
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;conio.h&gt;
  #define SIZE 20
  
  int main( void )
  {
      int n; //number of characters to be compared
      char s1[ SIZE ], s2[ SIZE ];
      char *results_word;
  
      printf( "Enter two strings: " );
      gets( s1 );
      gets( s2 );
      printf( "\nEnter the number of characters to be compared: " );
      scanf( "%d", &amp;n );
  </code></pre>
  
  <p>The problem starts here</p>
  
  <pre><code>    results_word = 
                   strncmp( s1, s2, n ) &gt; 0 ? " greater than " : 
                   strncmp( s1, s2, n ) == 0 ? " equal to " : " smaller than " ;
  
      printf( "\n%sis%s%s", s1, results_word, s2 );
  
      getche();
      return 0;
  }//end function main
  </code></pre>
  
  <p>So why doesn't result_word get the corresponding string ?</p>