title: Add two arrays by elements
body: <pre><code>{0, 0, 0, 1} + {5} = {5, 0, 0, 1}
  </code></pre>
  
  <p>I want to add elements of these arrays the way I described it above in ONE LOOP. How can I do this? I can come up only with the following solution:</p>
  
  <pre><code>for(int i = 0; i &lt; 4; i++)
  {
     outcomes = a[i] + b[i];
  }
  </code></pre>
  
  <p>Where a and b are the first arrays, and "outcome" is the array of outcomes. But this will break execution of the program as the arrays are not of the same size.</p>