title: Create function which sorts 2 given sorted strings
body: <p>Given two <strong>sorted</strong> strings, I need to merge these strings to one string, and make it sorted.
  <strong>sort by the ASCII value</strong>. for example:
  <code>acdty</code>, <code>berz</code> => <code>abcdertyz</code></p>
  
  <p>My code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  char* PairSortedArrays(char a[], char b[]) {
      char* c = (char*)malloc((sizeof(a) + sizeof(b)) * sizeof(char));
      int i, aPos = 0, bPos = 0;
  
      for (i = 0; i &lt; sizeof(*c); i++) {
          if ((int)(a[aPos]) &lt;= (int)(b[bPos])) {
              c[i] = a[aPos];
              aPos++;
          }
          else {
              c[i] = b[bPos];
              bPos++;
          }
      }
      return c;
  }
  
  int main()
  {
      printf("%s", PairSortedArrays("acdty", "berz"));
      return 0;
  }
  </code></pre>
  
  <p>The first problem is with <code>sizeof(a)</code>. if I code: <code>printf("%d", sizeof(a));</code> it prints <code>8</code>, while I expect it to print <code>5</code>.</p>