title: C++: array for loop printing addresses instead of values
body: <p>this was an example given to us in class. Could someone explain to me why this prints 29 addresses instead of 29 "0" (zeroes) ?</p>
  
  <p><code>int num[29];</code> is an array which has set aside 29 addresses for 29 integers -i get that part, but in the for loop you arent u printing the values IN those addreses rather than the addresses themselves?</p>
  
  <p>also, whats the difference between <code>(num+i)</code> and <code>(num[]+i)</code>?</p>
  
  <p>I'm a little confused..</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  
  using namespace std;
  
  int main(){
      int  num[29];
      for (int i=0;i&lt;29;i++)
          cout &lt;&lt; (num+i) &lt;&lt; endl;
  
      return 0;
  }
  </code></pre>