title: Reading a series of integers to an array?
body: <p>I'm new to arrays , i want to know if it is possible to fill the array using a for-loop with the scanf function , i made a first attempt but the program isn't working ( it is supposed to fill the array then print all the elements of it )</p>
  
  <pre><code>    #include&lt;stdio.h&gt;
  
      void main(){
      int n,i;
      int table[10];
      for(i=1;i&lt;=10;i++){
          scanf("%d",table[i]);
      }
  
      for(i=1;i&lt;=n;i++){
          printf("\n%d",table[i]);
      }
      getchar();
      getchar();
      return ;
      }
  </code></pre>