title: Passing array of structures to function c++
body: <p>Sorry for the noob question I'm just a little confused.<br>
  If I have an array of structures in main that I want to pass to a function:  </p>
  
  <pre><code>struct MyStruct{
      int a;
      int b;
      char c;
      mayarray[5];
  };  
  MyStruct StructArray[10]; 
  
  myFunction(StructArray[])
  </code></pre>
  
  <p>Pass to this to a function:  </p>
  
  <pre><code>void myFunction(struct MyStruct PassedStruct[])
  {
      PassedStruct[0].a = 1;
      PassedStruct[0].b = 2;
      // ... etc
  }  
  </code></pre>
  
  <p>My question is, will calling the function like this modify the data in <code>StructArray</code>? I need it to. Would that be call by reference? I'm a little confused. How would I change it so that when I pass the array of structures to the function, the function will modify the array <code>StructArray</code>? I'musing visual studio btw.<br>
  Thanks.</p>