title: Structure that mimics two flexible arrays in a struct in C
body: <p>Currently, I have a struct <code>camera</code> that holds two fixed size variables <code>f</code> and <code>p</code> </p>
  
  <pre><code>struct point {
      double x, y, z;
  };
  
  struct camera {
      struct point f[5], p[5];
  };
  </code></pre>
  
  <p>Making <code>f</code> and <code>p</code> flexible results in error. I followed the instructions given in this <a href="https://stackoverflow.com/questions/17552312/multiple-flexible-array-in-a-struct-in-c">SO question</a> and decided to go for non-struct variables and pass them to functions instead which resulted in long function call syntax and messy structure.</p>
  
  <p>My question, although subjective, is: what is the best approach to have two flexible arrays that can be accessed via one <em>point</em> (similar to struct, etc.)? </p>