title: Passing argument 2 of 'fibonacci' from incompatible pointer type
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  //Fibonacci
  
  void fibonacci(int n, int *fibs[n]){
  
      int i;
      *fibs[0] = 1;
      *fibs[1] = 1;
  
      printf(&quot;%d %d &quot;, *fibs[0], *fibs[1]);
  
      for(i=2; i&lt;=n; i++){
          *fibs[i] = *fibs[i-1] + *fibs[i-2];
          printf(&quot;%d &quot;, *fibs[i]);
      }   
  }
  
  int main(){
  
      int n, i;
  
      printf(&quot;How many fibonacci numbers do you want to enter?: &quot;);
      scanf(&quot;%d&quot;, &amp;n);
      int fibs[n];
  
      fibonacci(n, &amp;fibs);
      
      return 0;
  }
  </code></pre>
  <p>I was writing a Fibonacci program in this way. The program runs but does not print anything. And I get the error like, <code>[Warning] passing argument 2 of 'fibonacci' from incompatible pointer type</code>
  How can I fix this program to run efficiently?</p>