title: variable number of parameters in function pointer
body: <p>I've a pointer to the function that can point to the function with one, two or more args. </p>
  
  <pre><code>double (*calculate)(int);
  
  double plus(int a, int b){ return a+b; }
  
  double sin(int a){ return Math::Sin(a); }
  </code></pre>
  
  <p>how is it possible for me to use </p>
  
  <pre><code>calculate = plus; 
  calculate = sin;
  </code></pre>
  
  <p>in the same program. Not allowed to change functions plus and sin. Writing in managed c++; </p>
  
  <p>I've tried <code>double (*calculate)(...);</code> but that's not working.</p>