title: store value from a for-loop into an array
body: <p>I would like to store values read from a for-loop to an array </p>
  
  <pre><code>char A[];
  int x;
  int y=5;
  
  for( int i=0; int i =1000; i++) {
     x = x+y;
     // then store/append x as elements of the char array, A.... what is the syntax?
  }
  </code></pre>