title: Using assert with arrays in C
body: <p>part of the program I'm writing involves making a function to test assertions. This one is testing my Shift3DPoint function, which takes the first array and modifies it by adding the contents of the second array (so for example, test14 and test15 (as seen below) would result with the new test14 {6,8,0}. However, I'm confused about how I can word this in my function because it's supposed to return an array and I've only worked with doubles before for assert. Any help would be appreciated!</p>
  
  <pre><code>void UnitTest3D(void); //function for assertions
  void Shift3DPoint (double pt[], double offset[]); 
  
  void UnitTest3D(void){
      double test13[3] = {0,0,0};
      double test14[3] = {6,0,0};
      double test15[3] = {0,8,0};
      assert(UnitTest3D(test13, test14) ???
  return;
  }
  
  void Shift3DPoint(double pt[], double offset[]) {
      int i = 0;
      for (i = 0; i &lt; 3; ++i) {
      pt[i] = pt[i] + offset[i]; //changes array contents by adding corresponding ptB
    }
  
  return;
  }
  </code></pre>