title: how to pass n number of arguments to a function where n is not known
body: <p>I need to pass n number of arguments to a function. the user can enter as many arguments as he wants but we don't know the number of arguments he will pass. but all the implementations I have seen using va_list includes a count , but here we dont know the number. it is looks like</p>
  
  <pre><code>        void xyz(int x[],...);
  </code></pre>
  
  <p>where we have only arrays</p>
  
  <p>the function is used like. </p>
  
  <pre><code>        xyz({1,2,3},{1,1},{2},{3,3,3})
  </code></pre>
  
  <p>and then I want 3 arrays in my functions in separate variables if possible. I need to do some computation in these arrays. Is this possible in c++??</p>