title: Concating a char array to the end of another char array (without built in functions)
body: <p>I have been stuck on this for a few hours now, I am required to concatenate one string to the end of another and then store the results in a third string (without the use of pre-built functions. I am having a hard time of trying to store my results into another string, I was able to get a glimpse of what I wanted however it results in an infinite loop and does not seem effective. Can anyone shine some light on this?</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  void Concat(char arr1[], char arr2[], char arr3[]);
  
  int main(){
  
      char arr1[] = {"Hello how are you? \0 "};
      char arr2[] = { "The weather was cloudy today, so it rained. \0" };
      char arr3[] = { "Coffee is a great way to start the day. \0" };
  
      Concat(arr1, arr2, arr3);
  }
  
  void Concat(char arr1[], char arr2[], char arr3[]){
  
      while (arr1 != '\0' &amp;&amp; arr2 != '\0') {
  
          // (This outputs what a want, haveing string 2 concat to the end of the firs string) 
          // However there is no way to save it to another array or stop the infinte loop.
          //cout &lt;&lt; arr1 &lt;&lt; arr2 &lt;&lt; endl; 
  
          arr1 + arr2 = arr3; // syntax error
  
      }
  
  
  } 
  </code></pre>