title: Find Greatest Of Two Arrays And Store iN Third Array.?
body: <p>!!
  Hope You Guys Are At Good State Of Health .. 
  On my side I'm trying to write code, which store the Greatest value.</p>
  
  <p>Actually First I find Max Number between array1 and array2, Then store it in array3..
  Yes, This Is Simple, But The Result Is Not Correct.. 
  After Wasting Hours On It And Using Debugger, I still unable to track the problem.</p>
  
  <p>I Hope You Guys Will Help Me .. 
  Thanks For Your Consideration..</p>
  
  <pre><code>int max_hit(int *array1, int *array2, int size)
  {
      for(int i = 0; i &lt; size; i++)
      {
          if(*(array1+i) &gt; *(array2+i))
          {
                      return *(array1+i);
          }
          else if(*(array2+i) &gt; *(array1+i))
              {
                      return *(array2+i);
                  }
      }
  
  }
  
  void fill_third(int *array1, int *array2, int *array3, int size)
  {
      for(int j = 0; j &lt; size; j++)
      {
          *(array3+j) = max_hit(array1, array2, size);
      }
  }
  </code></pre>