title: Am I passing these variables properly? C Programming
body: <p>I am super beginner to C and I was wondering if these variables are being passed properly, I'd like their values to be altered in main. I'm mainly wondering if I am using &amp; and * properly.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int assign(int *i, int *scores[]);
  
  int main(void){
      int scores[30], i;
  
      assign(&amp;i, &amp;scores[0]);
  
      return 0;
  }
  
  int assign(int *i, int *scores[]){
      printf("Input scores:\n");
      for (i = 0; i &lt; 30; i++){
          scanf("%d", *scores[*i]);
      }
  
  }
  </code></pre>