title: I tried to join two arrays arr[5] and brr[5] s.t. the elements of "brr" are placed just after "arr"...compiled successfully but doesn't run
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;malloc.h&gt;
  
  main()
  
  {
  
  int arr[5]={1,2,3,4,5};
  
  int brr[5]={6,7,8,9,10};
  
  int *p,*m;
  
  m=&amp;brr[0];
  
  p=&amp;arr[4];
  
  int count=5;
  
  while(count!=0)
  
      {
      p++;
      *p=*m;
      m++;
      count--;
      }
  
  p=&amp;arr[0];
  
  while(count&lt;=9)
  
     {
  
      printf("%d ",*p);
      p++;
      count++;
     }
  
  return 0;
  
  }
  </code></pre>