title: Header files and functions, is my function, parameters, or header prototype?
body: <p>I just started with C and am tasked with using a header to house a prototype for a function. The problem is that nothing happens when I'm expecting a prompt for input. I didn't get an error and would like to know where to look at first to solve my problem. This is what I have so far.</p>
  
  <p>LAB2.c</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include "LAB2HEADER.h"
  int main(){
  double *p;
  double array [10];
  p = array;
  const int size = 10;
  void input(p,size);
  return 0;
  }
  </code></pre>
  
  <p>LAB2HEADER.h</p>
  
  <pre><code>#ifndef LAB2HEADER_H_
  #define LAB2HEADER_H_
  
  void input (double *array,const int size);
  
  
  
  
  #endif
  </code></pre>
  
  <p>LAB2HEADER.c</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include "LAB2HEADER.h"
  
  void input (double *array,const int size){
  for (int i = 0; i &lt; size ; i++)
  {
      printf("Input a value");
      scanf("%lf", &amp;array[i]);
  }
  }
  </code></pre>
  
  <p>A lot of the notes I look at seem to only either use Int as a parameter or have a function with no needed parameters, could my mistake be in my array pointer is it a problem with the way I made my function?</p>