title: Dealing with int arrays in c++
body: <p>I was looking at some c++ code as I am trying to learn it and came across something strange and I have no clue what is going on.</p>
  
  <pre><code>int A[100000];
  
  int main()
  {
      int N;
      scanf("%d", &amp;N);
  
      for (int i = 0; i &lt; N; i++)
      {
          scanf("%d", A + i);
      }
  </code></pre>
  
  <p>I understand everything that is happening except for the <code>scanf("%d", A + i);</code> line
  what is happen&shy;ing to the array here? is it just adding the integer read in from the console to the array? I have a good understanding of Java.</p>
  
  <p>So if someone would be able to translate that to Java. I would most likely be able to understand what is happening.</p>