title: concatenate two strings without strcat
body: <p>I want to concatenate two strings without using strcat() function.But I am not getting the required result. Please point me my mistake.</p>
  
  <pre><code>void main() {
      char s1[100], s2[100];
      int i;
  
      puts("First string?");
      gets(s1);
  
      puts("Second string?");
      gets(s2);
  
      for (i = strlen(s1); i &lt;= (strlen(s1) + strlen(s2)); i++) {
          s1[i] = s2[i - strlen(s1)];
      }
  
      puts(s1);
  }
  </code></pre>