title: How to store int data into an array in C?
body: <p>I wrote this simple code to calculate numbers from 1 to 1000 which are multiples of 3 and then store them in an array and then print the array.</p>
  
  <pre><code> #include &lt;stdio.h&gt;
  
      void main(void){
  
      int i,x,y;
      int A[1000];
  
      for(i=1;i&lt;1000;i++){
      x=i%3;
  
      if(x==0){
  
          A[i]=i;
          printf("%d\n",A[i]);
  
         }
        }
      }
  </code></pre>
  
  <p>the code is working fine but the thing i wanted to ask is, whether the array will start storing values from A[0] or A[1]? because of the loops counter i=1.</p>