title: Adding (or doing any other math) every member of two same structs with less code
body: <p>So, basically, I want to addify every member of first <strong>struct</strong>, with every member of second <strong>struct</strong>, and the <strong>structs</strong> are of same type. Like this:</p>
  
  <pre><code>struct Foo
  {
      int bar1;
      int bar2;
      int bar3;
      int bar4;
      int bar5;
  }
  
  Foo AddFoos(Foo foo1, Foo foo2)
  {
      Foo foo3;
      foo3.bar1 = foo1.bar1 + foo2.bar1;
      foo3.bar2 = foo1.bar2 + foo2.bar2;
      foo3.bar3 = foo1.bar3 + foo2.bar3;
      foo3.bar4 = foo1.bar4 + foo2.bar4;
      foo3.bar5 = foo1.bar5 + foo2.bar5;
      return foo3;
  }
  </code></pre>
  
  <p>However, when <strong>structs</strong> keep getting bigger, this way is weird. Is there any way to do it with less lines of code? And preferably without advanced pointer magic?</p>